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

Is there a way to password protect a macro?

For example, I would like to set up a file that when the file is opened
you cannot view the macros associated with the file unless you have the
password?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Password Protecting a Macro

Marino, you need to protect the VBA project, from your workbook right-click
the workbook's icon and pick View Code. This icon is to the left of the
"File" menu this will open the VBA editor, in the left hand window right
click on your workbook name and select VBA project properties, protection,
check lock project for viewing and set a password. Press Alt and Q to close
this window and go back to your workbook and save and close the file

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 97 & 2000
** remove news from my email address to reply by email **

"Marino13 " wrote in message
...
Is there a way to password protect a macro?

For example, I would like to set up a file that when the file is opened
you cannot view the macros associated with the file unless you have the
password?


---
Message posted from http://www.ExcelForum.com/



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 protecting worksheets VANH1027 New Users to Excel 5 February 28th 09 05:01 PM
Password Protecting Cells Kevin M[_3_] Excel Discussion (Misc queries) 3 January 26th 09 08:05 AM
Macro- not re-password protecting Roady Excel Discussion (Misc queries) 1 July 19th 08 01:05 AM
Password Protecting Nick Excel Discussion (Misc queries) 6 June 30th 05 12:06 PM
Sheet Protecting password Nick Excel Discussion (Misc queries) 1 June 30th 05 12:43 AM


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

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

About Us

"It's about Microsoft Excel"