Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Excel File Saving - not wanted

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Davidson - 21 Mar 2006 06:09 GMT
I have a vbs script, opens a spreadsheet, reads some data and
uses that to launch some other scripts.

For a long time, it's worked just fine.
All of the sudden, after the script has read the data,
a dialog box pops up asking
"Do you want to save the changes..."

I've set the file to open read only.
I've set Display.Alerts=False

Neither one made any difference.

It didn't start doing this until a couple of weeks ago.
It's annoying, to say the least.

Note: The script is often run on PC's on which we're
RDC'd into.  AND, the xls workbook is running in shared mode.

Any ideas, hints or suggestions ?

Signature

Paul Davidson

Gary Keramidas - 21 Mar 2006 06:22 GMT
when you close the workbook, do you use something like this?

Workbooks(Filename).Close SaveChanges:=False

Signature

Gary

>I have a vbs script, opens a spreadsheet, reads some data and
> uses that to launch some other scripts.
[quoted text clipped - 16 lines]
>
> Any ideas, hints or suggestions ?
Paul Davidson - 23 Mar 2006 02:33 GMT
Gary:

Thanks for the reply.
Shortly after posting this msg,
I added that line to my code and voila it worked great.

I still don't understand why the behavior suddenly changed,
but then again, IT has a way pushing things on us without
alerting us.

Signature

TIA
Paul Davidson

> when you close the workbook, do you use something like this?
>
[quoted text clipped - 20 lines]
> >
> > Any ideas, hints or suggestions ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.