• Start new app (vbs)

    Author
    Topic
    #454916

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #1130526

      Try this:

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

    Viewing 0 reply threads
    Reply To: Start new app (vbs)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: