A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

open files



 
 
Thread Tools Display Modes
  #1  
Old February 10th, 2004, 12:40 AM
Anders S
external usenet poster
 
Posts: n/a
Default open files

Hi Lee,

If there have been any changes made to the workbook you are trying to =
re-open, the message will appear to prevent discarding the changes, just =
as the message says.
If no changes have been made to the workbook, the message will not =
appear.

Application.DisplayAlerts =3D False
Workbooks.Open Filename:=3DFullPath ...

will suppress the message and discard any changes made - if that's what =
you want.

HTH
Anders Silv=E9n


"Lee" skrev i meddelandet =
...
In EXCEL macros, I open external files (e.g.,=20
Workbooks.Open Filename:=3DFullPath ...) for data. When I=20
try to open a file that has already opened, I got a=20
message like "xxx is already open. Reopening will cause=20
any changes you made to be discarded. Do you still want=20
to open ..." =20
=20
The question is for some other files, I don't get this=20
message even they are already open. I don't like the=20
message to appear. thanks. =20
.
=20

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.