View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Xcelion Xcelion is offline
external usenet poster
 
Posts: 39
Default Protect Sheet - VB code to specify password

Hi Darin,

Sheet("B").Unprotect "ABC"
assuming "ABC" is your password

Thanks
Xcelion


"Darin Kramer" wrote:


Howdie,

Sheets("A").protect is how to protect a sheet, and similar
Sheets("B").Unprotect.
I run a Macro that first unprotects a sheet, then when Macro is finished
Re protects the sheet.

I want to now specify a password, lets say ABC.
Whats the VB to do that....?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***