Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Password Protect Macro?

Is it possible to password protect a macro so that no one is able to go into
your macro and modify it without a password?

Thank you,
Ryan Hess
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Password Protect Macro?

Yes, it is possible, but VBA passwords can be cracked using
software readily available on the net. To protect a project, open
the VBA Editor, go to the Tools menu, choose VBA Project
Properties, then the Protection tab. There, check the "Lock
Project For Viewing" option and supply a password.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ryanmhess" wrote in
message
...
Is it possible to password protect a macro so that no one is
able to go into
your macro and modify it without a password?

Thank you,
Ryan Hess



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Password Protect Macro?

Thank you very much Chip.

Ryan Hess

"Chip Pearson" wrote:

Yes, it is possible, but VBA passwords can be cracked using
software readily available on the net. To protect a project, open
the VBA Editor, go to the Tools menu, choose VBA Project
Properties, then the Protection tab. There, check the "Lock
Project For Viewing" option and supply a password.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ryanmhess" wrote in
message
...
Is it possible to password protect a macro so that no one is
able to go into
your macro and modify it without a password?

Thank you,
Ryan Hess




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Password Protect Macro?

Are there any other options? I want to distribute spreadsheets with a Visual
Basic macro but deny the user access to the macro.

"Chip Pearson" wrote:

Yes, it is possible, but VBA passwords can be cracked using
software readily available on the net. To protect a project, open
the VBA Editor, go to the Tools menu, choose VBA Project
Properties, then the Protection tab. There, check the "Lock
Project For Viewing" option and supply a password.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ryanmhess" wrote in
message
...
Is it possible to password protect a macro so that no one is
able to go into
your macro and modify it without a password?

Thank you,
Ryan Hess




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Password Protect Macro?

Chip has described the method.

The only other option is to build the majority of your code in VB6 and
compile it to a DLL or build a standalone application.

--
Regards,
Tom Ogilvy

"Noel Rietman" <Noel wrote in message
...
Are there any other options? I want to distribute spreadsheets with a

Visual
Basic macro but deny the user access to the macro.

"Chip Pearson" wrote:

Yes, it is possible, but VBA passwords can be cracked using
software readily available on the net. To protect a project, open
the VBA Editor, go to the Tools menu, choose VBA Project
Properties, then the Protection tab. There, check the "Lock
Project For Viewing" option and supply a password.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ryanmhess" wrote in
message
...
Is it possible to password protect a macro so that no one is
able to go into
your macro and modify it without a password?

Thank you,
Ryan Hess








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
Add protect worksheet password in macro Kelly Excel Worksheet Functions 1 January 10th 06 02:08 AM
Macro to protect/unprotect with password Cam Excel Programming 3 July 26th 05 10:36 PM
Can I password protect VBA modules using a macro? Don Wiss Excel Programming 2 March 29th 05 04:03 AM
Password protect macro Pete Excel Programming 2 April 16th 04 03:44 AM
Request password during Protect macro Gavin[_5_] Excel Programming 6 November 11th 03 12:54 PM


All times are GMT +1. The time now is 02:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"