Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA and Password Protection

I would like to protect worksheets with a password using a macro. Recording
the macro does not seem to install the password and the worksheet can be
unprotected. What needs to be added to the VBA code?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VBA and Password Protection

worksheets("somesheetnamehere").protect password:="topsecret"

Todd from Gold River wrote:

I would like to protect worksheets with a password using a macro. Recording
the macro does not seem to install the password and the worksheet can be
unprotected. What needs to be added to the VBA code?

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 protection in macro ( Anybody can view my password in VB Sherees Excel Discussion (Misc queries) 2 January 24th 10 10:05 PM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Password Protection sitay1 Excel Discussion (Misc queries) 1 August 26th 05 03:15 AM
password protection Sunil Patel Excel Programming 2 October 7th 04 10:29 PM
password protection Matt Excel Programming 2 March 6th 04 09:19 PM


All times are GMT +1. The time now is 09:39 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"