Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Password protect macros in Excel

I havea password protected workbook. I wrote some code to automate some
tasks and have embedded the password in the code to unprotect where
necessary. Code works fine. Question is how to protect the code to protect
password from bein discovered?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Password protect macros in Excel

Inside the VBE:
Select the project associated with your workbook
Tools|VBAProject Properties
Protection tab.

But this (like any password) can be broken pretty easily by anyone with enough
cash to buy a password breaker or anyone who can search the web for the right
combination of keywords.



Greg Sottile wrote:

I havea password protected workbook. I wrote some code to automate some
tasks and have embedded the password in the code to unprotect where
necessary. Code works fine. Question is how to protect the code to protect
password from bein discovered?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Password protect macros in Excel

ps. After you supply a password (and lock the project from viewing), save the
workbook, close the workbook, and then open the VBE to see if you can view the
project.

pps. Remember your password. You don't want to be one of those people who have
to purchase a password breaker or search the web!

Dave Peterson wrote:

Inside the VBE:
Select the project associated with your workbook
Tools|VBAProject Properties
Protection tab.

But this (like any password) can be broken pretty easily by anyone with enough
cash to buy a password breaker or anyone who can search the web for the right
combination of keywords.

Greg Sottile wrote:

I havea password protected workbook. I wrote some code to automate some
tasks and have embedded the password in the code to unprotect where
necessary. Code works fine. Question is how to protect the code to protect
password from bein discovered?


--

Dave Peterson


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Password protect macros in Excel

Dave Peterson wrote in
:

ps. After you supply a password (and lock the project from viewing),
save the workbook, close the workbook, and then open the VBE to see if
you can view the project.

pps. Remember your password. You don't want to be one of those
people who have to purchase a password breaker or search the web!

Dave Peterson wrote:

Inside the VBE:
Select the project associated with your workbook
Tools|VBAProject Properties
Protection tab.

But this (like any password) can be broken pretty easily by anyone
with enough cash to buy a password breaker or anyone who can search
the web for the right combination of keywords.

Greg Sottile wrote:

I havea password protected workbook. I wrote some code to
automate some tasks and have embedded the password in the code to
unprotect where necessary. Code works fine. Question is how to
protect the code to protect password from bein discovered?


--

Dave Peterson



Its also worth pointing out that if you protect your code on say XL2003
you wont be able to unprotect it in XL97.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Password protect macros in Excel

I think the change in protection (encryption algorithms???) started with
xl2k--not just xl2003.



Steve J wrote:

<<snipped


Its also worth pointing out that if you protect your code on say XL2003
you wont be able to unprotect it in XL97.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Password protect macros in Excel

When all is said and done, it will take a knowledgeable person about 5
minutes to discover your "hidden" password.

Greg Sottile wrote:

I havea password protected workbook. I wrote some code to automate some
tasks and have embedded the password in the code to unprotect where
necessary. Code works fine. Question is how to protect the code to protect
password from bein discovered?


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
Password Protect Excel Options Ed O'Brien Excel Discussion (Misc queries) 1 August 6th 09 05:29 PM
How do I password protect an excel workbook? Debbie B Excel Discussion (Misc queries) 2 August 3rd 09 01:05 PM
How can protect an Excel spreadsheet with a password pascalpinault Excel Discussion (Misc queries) 1 July 30th 09 07:44 PM
Excel - password protect error kori Excel Discussion (Misc queries) 0 May 27th 08 10:29 PM
Password protect a sheet without Macros Cappa Excel Discussion (Misc queries) 3 May 27th 06 01:49 AM


All times are GMT +1. The time now is 10:39 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"