+ Reply to Thread
Results 1 to 4 of 4

Opening an excel file using a script

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

    Opening an excel file using a script

    Hi,

    I have created a spreadsheet containing some macros.
    I need to write a script of some sort that could run the spreadsheet (allowing the macros to run) on a scheduled basis.

    does anyone know how I can do this?
    also, is there a way of the system opening an excel spreadsheet without actually visibly doing so (no MS Excel being open etc)?

    the macros int he sheet refresh data from an external source, and email a specified user.

    thanks in advance,
    Matt

  2. #2
    Puppet_Sock
    Guest

    Re: Opening an excel file using a script

    matpj wrote:
    > I have created a spreadsheet containing some macros.
    > I need to write a script of some sort that could run the spreadsheet
    > (allowing the macros to run) on a scheduled basis.
    >
    > does anyone know how I can do this?
    > also, is there a way of the system opening an excel spreadsheet without
    > actually visibly doing so (no MS Excel being open etc)?
    >
    > the macros int he sheet refresh data from an external source, and email
    > a specified user.


    Will a Scheduled Task (it's in the control panel) meet your needs?
    Socks


  3. #3
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164
    hi,
    thanks for the reply.
    I looked at scheduled tasks, but that seems to just be for programs to execute on a schedule.
    I need to run a file.
    not sure if a batch file woudl do the job - I wouldn't know where to start with batch files.

    I have tried running the file using a dos command. It opened Excel and opened the file, but still asked me if I wanted to enable macros etc.

    i'm hoping for a solution that will open the file in the background, without displaying any alerts, and then close it..

    thanks,
    Matt

  4. #4
    Puppet_Sock
    Guest

    Re: Opening an excel file using a script

    matpj wrote:
    > hi,
    > thanks for the reply.
    > I looked at scheduled tasks, but that seems to just be for programs to
    > execute on a schedule.
    > I need to run a file.
    > not sure if a batch file woudl do the job - I wouldn't know where to
    > start with batch files.
    >
    > I have tried running the file using a dos command. It opened Excel and
    > opened the file, but still asked me if I wanted to enable macros etc.
    >
    > i'm hoping for a solution that will open the file in the background,
    > without displaying any alerts, and then close it..


    As long as you have security set high enough to ask for
    confirmation, it will ask for confirmation. It does not matter
    how you run it. You need to turn security lower to get rid
    of these warnings.
    Socks


+ 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