Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Start new app (vbs)

    Hi. I want to create a script (.vbs) file to run Excel and open a specific workbook. I thought I could just add a line such as:
    C:Program Files... Excel.Exe C:Some Folderbook1.xls
    Will this work, or do I need to use the Shell function to cause this to happen? Thanks, Andy.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Start new app (vbs)

    Try this:

    Dim xl
    Set xl = CreateObject("Excel.Application")
    xl.Visible = True
    xl.Workbooks.Open "C:Some Folderbook1.xls"

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Start new app (vbs)

    Just the job. Thanks. Andy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •