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 Macro & XLA passwords

The only access to functions that would allow you to protect a project
(code) using VBA would be the use of Send keys.

The workbook.SaveAs method has arguments for supplying passwords.

--
Regards,
Tom Ogilvy

"Geoff" wrote in message
...
I would like to generate an XLA password using VBA? Also a password to to

protect the viewing of modules using VBA.

The XLA file is being genererated from a script. Any help on this one

would be greatly appreciated.

Thanks in advance

Geoff