Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default How to Protect MACRO with Password


Please tell me how to put password in VBA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default How to Protect MACRO with Password

Amol, to protect the VBA project? if so try this, if this is not what you
want post back

To protect the VBA project, from your workbook right-click the workbook's
icon and pick View Code. This icon is at the top-left of the spreadsheet
this will open the VBA editor, in Project Explorer right click on your
workbook name, if you don't see it press CTRL + r to open the Project
Explorer then 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. Be aware that this
password can be broken by third party software


--
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 2002 & 2003
"Amol" wrote in message
ups.com...

Please tell me how to put password in VBA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to Protect MACRO with Password

Do you know if there's a problem with this in Excel 2007? Unfortunately
we've only one machine running '07 in the office to use as a test-bed, but...

When the VBA project is password protected (to keep those very hidden sheets
very hidden) on this one PC and saved, when re-opened on the same PC *even
with a different user logged on, and after a reboot* the password protection
is not in place. If it was originally saved as an '03 workbook, the password
functions correctly when opened on a different PC running Excel '03.
However, if saved as an '07 workbook then Microsoft's own conversion utility
strips this password when opened on a PC running '03.

Known glitch or just a weird PC? And are there any fixes available?

Thanks

"Paul B" wrote:

Amol, to protect the VBA project? if so try this, if this is not what you
want post back

To protect the VBA project, from your workbook right-click the workbook's
icon and pick View Code. This icon is at the top-left of the spreadsheet
this will open the VBA editor, in Project Explorer right click on your
workbook name, if you don't see it press CTRL + r to open the Project
Explorer then 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. Be aware that this
password can be broken by third party software


--
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 2002 & 2003
"Amol" wrote in message
ups.com...

Please tell me how to put password in VBA




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default How to Protect MACRO with Password

Never ever rely on password protection on any Excel object.

Everything can be broken into.

Use AddIns.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default How to Protect MACRO with Password

I don't have Excel 2007 so I can't say, Sorry

--
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 2002 & 2003
"Paul Trebbett" wrote in message
...
Do you know if there's a problem with this in Excel 2007? Unfortunately
we've only one machine running '07 in the office to use as a test-bed,
but...

When the VBA project is password protected (to keep those very hidden
sheets
very hidden) on this one PC and saved, when re-opened on the same PC *even
with a different user logged on, and after a reboot* the password
protection
is not in place. If it was originally saved as an '03 workbook, the
password
functions correctly when opened on a different PC running Excel '03.
However, if saved as an '07 workbook then Microsoft's own conversion
utility
strips this password when opened on a PC running '03.

Known glitch or just a weird PC? And are there any fixes available?

Thanks

"Paul B" wrote:

Amol, to protect the VBA project? if so try this, if this is not what you
want post back

To protect the VBA project, from your workbook right-click the workbook's
icon and pick View Code. This icon is at the top-left of the spreadsheet
this will open the VBA editor, in Project Explorer right click on your
workbook name, if you don't see it press CTRL + r to open the Project
Explorer then 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. Be aware that this
password can be broken by third party software


--
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 2002 & 2003
"Amol" wrote in message
ups.com...

Please tell me how to put password in VBA






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 Macro Dan Excel Programming 2 September 1st 06 07:13 PM
password protect macro Modell Excel Programming 3 April 27th 06 08:59 PM
Password Protect Macro? ryanmhess Excel Programming 4 January 27th 06 04:56 PM
Password Protect Running of Macro John Excel Programming 8 September 27th 05 02:49 AM
Password protect macro Pete Excel Programming 2 April 16th 04 03:44 AM


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