Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set to Read Only
Is it possible to set a workbook to Read Only at run time?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set to Read Only
If you mean that you want to open a workbook and then change it to
read-only, you can do it like this: On Error Resume Next ActiveWorkbook.Saved = True ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly The On Error is in case the workbook is already RO. -- Jim Rech Excel MVP |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set to Read Only
Check out ChangeFileAccess xlReadOnly
in the VBA help Eric -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Eric" wrote in message ... Is it possible to set a workbook to Read Only at run time? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Read only file is NOT Read only | Excel Discussion (Misc queries) | |||
I have a read only xl file, I need it to be read and write | Excel Discussion (Misc queries) | |||
Read-write/Read-only | Excel Discussion (Misc queries) | |||
XCEL FILE REC'D AS READ ONLY -- HOW TO NOT BE "READ ONLY" | Excel Discussion (Misc queries) | |||
How can a file be converted from Read-Only to Read/Write | Excel Discussion (Misc queries) |