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 / September 2007

Tip: Looking for answers? Try searching our database.

Open a read only file as a writable file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
the00snoopy - 12 Sep 2007 19:14 GMT
I have a file that is marked as recommended read only. I would like to have
my macro open the file alter it and save it but I can't seem to automatically
get rid of the message box when I open the file that asks if you would like
it to be read only.

I have tried
         workbooks.open(file,,false)

And I have tried
         Application.DisplayAlerts = False
         workbooks.open(file)
         Application.DisplayAlerts = True

The first method did nothing and the second method opened it as a read only
file.

Any suggestions?
Jim Rech - 12 Sep 2007 21:40 GMT
Workbooks.Open Filename:="C:\book1.xls", IgnoreReadOnlyRecommended:=True

Signature

Jim

|I have a file that is marked as recommended read only. I would like to have
| my macro open the file alter it and save it but I can't seem to automatically
[quoted text clipped - 13 lines]
|
| Any 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.