View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mark Bochner Mark Bochner is offline
external usenet poster
 
Posts: 1
Default Setting worksheet protection password in VBA

"Tim Lund" wrote in message ...
In VB, how can I get a prompt for a password to come up?
When I record a macro, all I get in activesheet.protect
and some stuff about objects, etc, but nothing to prompt
for password.

Tim


activesheet.protect password:= opensesame or activesheet.unprotect opensesame