+ Reply to Thread
Results 1 to 3 of 3

Syntax for using windows scheduler to open a specific spreadsheet

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164

    Syntax for using windows scheduler to open a specific spreadsheet

    Hi all,

    I am playing around with the windows scheduler and can make it open up excel.
    I was wondering if anyone knows the syntax for opening up a specific spreadsheet?

    I'm hoping to have a macro in the Workbook Open subroutine so that I can schedule a report to run on a weekly basis.

    Thanks in advance,
    Matt

  2. #2
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327
    Hi matpj,

    The way round this that I've found is to point the scheduler to a batch file that contains the lines:

    cd\
    cd Program Files
    cd Microsoft Office
    cd Office10
    excel.exe c:\source.xls

    This batch file will change directory to c:\Program Files\Microsoft Office\Office10 and then opens Excel and the file you specify.
    Hope this helps

    Seamus

  3. #3
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Syntax for using windows scheduler to open a specific spreadsheet

    SOS -- would that be the code to open an Excel 2000 spreadsheet?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1