Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Locking a Workbook

I have a Workbook which has an Auto_Open Macro. The Auto_Open macro displays
a dialogbox which asks "Open as Read Only" or "Edit File". If they select
Open as Read Only I want one of two things. Either make the Workbook Read
Only or disable their ability to save the Workbook.

If they select Edit File, they are asked for a password and then taken into
the Workbook where they are allowed to make and save changes (this part is
working fine).


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Locking a Workbook

ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly

--
Regards,
Tom Ogilvy

"Patrick Simonds" wrote in message
...
I have a Workbook which has an Auto_Open Macro. The Auto_Open macro

displays
a dialogbox which asks "Open as Read Only" or "Edit File". If they

select
Open as Read Only I want one of two things. Either make the Workbook Read
Only or disable their ability to save the Workbook.

If they select Edit File, they are asked for a password and then taken

into
the Workbook where they are allowed to make and save changes (this part is
working fine).




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
Locking cells in a shared workbook Shacks Excel Discussion (Misc queries) 2 August 25th 09 03:11 PM
Locking a Workbook, but Inserting Rows Philip Excel Worksheet Functions 0 June 8th 09 09:55 PM
Signature locking entire workbook Clint Excel Discussion (Misc queries) 2 January 30th 08 10:51 PM
shared workbook keeps locking and "unsharing" - why? Peter@TGS Excel Discussion (Misc queries) 1 August 19th 05 11:07 AM
Locking and unlocking a workbook Nigel Bennett Excel Programming 1 June 21st 04 03:58 PM


All times are GMT +1. The time now is 10:20 AM.

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"