Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general,microsoft.public.office.developer.vba
external usenet poster
 
Posts: 36
Default how to add a password to the VBA code?

I mean the VBA code behind a macro in the Excel sheet so other people will
not be able to see the code while still able to run the macro?

Thanks a lot


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general,microsoft.public.office.developer.vba
external usenet poster
 
Posts: 6
Default how to add a password to the VBA code?

Right click the module name. Select project properties, then the protection
tab

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


cfman wrote:
I mean the VBA code behind a macro in the Excel sheet so other people
will not be able to see the code while still able to run the macro?

Thanks a lot



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default how to add a password to the VBA code?

Open the Visual Basic Editor (Alt/F11)
Right click on the VBAProject(YourProject) in the left hand pane.
Select VBAProject Properties.
Click on the Protection tab.
Check "Lock project for viewing."
Enter a password twice.
Click OK.

Regards,

Alan


"cfman" wrote in message
...
I mean the VBA code behind a macro in the Excel sheet so other people will
not be able to see the code while still able to run the macro?

Thanks a lot



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default how to add a password to the VBA code?

With your workbook open.

Alt + F11, CTRL + r

Right-click on your workbook/project and "Properties"

Select "Protection" tab and "lock project for viewing".

Enter a password.

Note: workbook must be saved/closed and re-opened before the locking takes
effect.


Gord Dibben MS Excel MVP

On Thu, 1 Mar 2007 18:18:52 -0800, "cfman" wrote:

I mean the VBA code behind a macro in the Excel sheet so other people will
not be able to see the code while still able to run the macro?

Thanks a lot


  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.office.developer.vba,microsoft.public.word.vba.general
external usenet poster
 
Posts: 5
Default how to add a password to the VBA code?

Open the IDE (alt F11)
Select Tools then VBA Project Properties
Then select the protection tab, and lock the project for viewing

"cfman" wrote:

I mean the VBA code behind a macro in the Excel sheet so other people will
not be able to see the code while still able to run the macro?

Thanks a lot





  #6   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general,microsoft.public.office.developer.vba
external usenet poster
 
Posts: 22
Default how to add a password to the VBA code?

cfman wrote:
I mean the VBA code behind a macro in the Excel sheet so other people will
not be able to see the code while still able to run the macro?


You mean, those three "other people" who don't know about Google?
--
..NET: It's About Trust!
http://vfred.mvps.org


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 on VBA Code danh Excel Programming 1 December 18th 06 09:41 AM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Worksheet Functions 5 October 27th 05 09:57 AM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Programming 5 October 27th 05 09:57 AM
code asking for password Jonsson[_30_] Excel Programming 3 May 13th 04 09:47 AM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


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