I have an Excel file with a few worksheets in it. One of those worksheets
contains data that is linked to a TXT file and another is linked to another
Excel file.

When I open the file it prompts to "Enable Automatic Refresh". I click yes,
then I get two more prompts - one for each of the links mentioned above.

Here's what I'm looking to do:

I want a script that will open that file and automatically respond (in the
affirmative) to those 3 prompts. I then want the file saved and copied into
another location - so that when the user opens it, it is more or less
"stale" data - in otherwords, it doesn't give them the option to
automatically refresh.

Is this possible? How? Help!

Thanks!
Glenn

Re: need help creating a VBS for an Excel file. by OldDog

OldDog
Tue Feb 27 15:46:41 CST 2007

On Feb 26, 12:13 pm, "Glenn" <nos...@yahoo.com> wrote:
> I have an Excel file with a few worksheets in it. One of those worksheets
> contains data that is linked to a TXT file and another is linked to another
> Excel file.
>
> When I open the file it prompts to "Enable Automatic Refresh". I click yes,
> then I get two more prompts - one for each of the links mentioned above.
>
> Here's what I'm looking to do:
>
> I want a script that will open that file and automatically respond (in the
> affirmative) to those 3 prompts. I then want the file saved and copied into
> another location - so that when the user opens it, it is more or less
> "stale" data - in otherwords, it doesn't give them the option to
> automatically refresh.
>
> Is this possible? How? Help!
>
> Thanks!
> Glenn

That sounds more like an Excel macro to me.


Re: need help creating a VBS for an Excel file. by TDM

TDM
Wed Feb 28 11:02:32 CST 2007

>
> That sounds more like an Excel macro to me.
>

I agree. If you create a VBA Module with the name
AutoOpen, any code in that module will run when the
file is opened automatically.

TDM