Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Being pretty new to macro writing, my standard approach to everything is
to record bits and pieces of what I want to do in mini-macros and then use that code to build up a more general one. When I record a macro while opening a file read-only, nothing gets captured that indicated it's read-only. Furthermore, if I execute the macro it opens the file as writable. Does this mean you can't write a macro to open a file read-only OR is there a bug in excel in that it's not capturing that fact in 'record macro'? -mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Good afternoon Mark Try this Workbooks.Open Filename:= "C:\TestFile.xls", ReadOnly:=True The ReadOnly function does seem to be documented, but not to a great extent. But it works. HTH DominicB -- dominicb ------------------------------------------------------------------------ dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932 View this thread: http://www.excelforum.com/showthread...hreadid=376533 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
FILE CAN ONLY OPEN AS READ ONLY | Excel Discussion (Misc queries) | |||
Help with Open and Read txt file, please? | Excel Programming | |||
How to Open file as read only | Excel Programming | |||
Open File Read Only | Excel Programming | |||
File in use open read only | Excel Programming |