View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Password protection

Use ActiveWorkbook.SaveAs and look at the password arguments in help.

--
Regards,
Tom Ogilvy

"Steve C" wrote in message
...
I have written/recorded code which takes one spreadsheet (FileA) and saves

it
to another location under a different name (FileB). I want my code to

also
automatically give FileB a password of "test" so that when another user

tries
to open it, it will prompt them for the password.

Thank you in advance for your help!

Steve C