Just to clarify matters:
I use this syntax:
Workbooks.Open Filename:= _
ThisFile
Where ThisFile contains the filename
ActiveWorkbook.Close
Back in the good ole' Lotus days I was able to create a cell in my worksheets with a formula for the complete file path. I could name the cell "path" that contained the formula and by using let's say \path in the footer section the file path appeared on each page of my printouts. I haven't been able to unlock the secret of how to put the file path in the footer except by means of manually keying in the information. There has got to be a better way, doesn't there?
1) Workbooks.Open "YourFileName", ReadOnly:=True
2) ActiveWorkbook.Saved = True
Ivan
======================
Thanks but...
ActiveWorkbook.Saved = True
will this not Save the file? I want to do the opposite...
This is the background..
I am trying a few syntaxes myself.. but have not been successful.. Can you help Ivan...? or someone else...?
Thanks
Seting a workbook to saved = true tells excel
that this workbook has already been saved and will
not prompt you to save changes.
Ivan
Hi Uttam
from what I understand, you could insert this line at the beginning of your macro:
Application.DisplayAlerts = False
Just be sure the set it back to true at the end.
Stephane Parent
Hello Stephane,
Your method works exactly the way I want it to work.
Thanks a lot..
Uttam
================= Hi Uttam from what I understand, you could insert this line at the beginning of your macro: Application.DisplayAlerts = False Just be sure the set it back to true at the end. Stephane Parent