Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Open a read only file as a writable file

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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Open a read only file as a writable file

Workbooks.Open Filename:="C:\book1.xls", IgnoreReadOnlyRecommended:=True

--
Jim
"the00snoopy" wrote in message
...
|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?
|


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel file won't open because it' a read only file when it is not IanB Excel Discussion (Misc queries) 1 September 12th 05 01:28 PM
how do you open a file read-only? Mark Seger Excel Programming 1 June 4th 05 05:58 PM
Help with Open and Read txt file, please? Ed Excel Programming 1 April 28th 05 06:12 AM
How to Open file as read only Helen Excel Programming 1 January 24th 05 02:45 PM
File in use open read only jeffP Excel Programming 0 August 21st 04 06:37 PM


All times are GMT +1. The time now is 11:56 PM.

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

About Us

"It's about Microsoft Excel"