Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Unhide sheet on open only if password to modify is given

I currently have a sheet hidden on file/open. I have set the file/save
option to a password to modify. Is there a way to unhide the sheet only if
the password to modify is given, but hide it if the file is opened as
read-only? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Unhide sheet on open only if password to modify is given

You could check:

if thisworkbook.ReadOnly then
'do one thing
else
'do something else
end if



Alex wrote:

I currently have a sheet hidden on file/open. I have set the file/save
option to a password to modify. Is there a way to unhide the sheet only if
the password to modify is given, but hide it if the file is opened as
read-only? Thanks


--

Dave Peterson
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
password protect unhide sheet command jimmill Excel Discussion (Misc queries) 1 February 24th 09 10:08 PM
Password required in VBA to open the sheet Tia[_3_] Excel Worksheet Functions 2 October 12th 08 11:41 AM
Need to password protect work sheet and unhide rows. Nicholas Excel Discussion (Misc queries) 2 October 5th 07 06:44 PM
PASSWORD REMOVAL I have the password to open the file and the password to modify the file now how to remove them LJ[_4_] Excel Programming 0 April 27th 06 03:18 AM
password prompt to unhide sheet Jeff Excel Programming 1 June 9th 04 08:40 PM


All times are GMT +1. The time now is 04:21 PM.

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

About Us

"It's about Microsoft Excel"