Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Protecting (hiding) the Code in an Add-in

I have a number of add-ins that I need to protect.
One (which is used in house) is nicely "locked" up. Requires a pass-word, no
matter how I try to expand it ( double clicking, or clicking on the plus sign)

As far as I can figure, I used the same steps on the Add-in that I need to
send out Internationally.
No matter what I try, I cannot block the access to it.
I go to VBAProject Properties
Select Protection
Enter Pass-word and Pass-word Confirmation
Save the add-in

Then, when I go to check if it is locked, it just opens up again.

Please help
JFS

--
John F. Scholten
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Protecting (hiding) the Code in an Add-in

If you are distributing an ADD-IN, you should rename it to something besides
VBAProject. You can do this in the properties for the project. Then you
will see
VBAProject_Name Properties when you go to the menu so you know you are
protecting the correct workbook

Also, you need to make sure you have saved the correct project if doing it
from the vbe. Hitting the save button doesn't always work. I usually use
the immediate window and do

Workbooks("MyProject.xls").Save

to be absolutely sure.

There isn't any other way to protect your code - nor have I seen another
post complaining that it doesn't work, so I suspect you are not assigning
the password to the correct project.

--
Regards,
Tom Ogilvy

"John F" wrote in message
...
I have a number of add-ins that I need to protect.
One (which is used in house) is nicely "locked" up. Requires a pass-word,

no
matter how I try to expand it ( double clicking, or clicking on the plus

sign)

As far as I can figure, I used the same steps on the Add-in that I need to
send out Internationally.
No matter what I try, I cannot block the access to it.
I go to VBAProject Properties
Select Protection
Enter Pass-word and Pass-word Confirmation
Save the add-in

Then, when I go to check if it is locked, it just opens up again.

Please help
JFS

--
John F. Scholten



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
Protecting and Hiding formulas Pav New Users to Excel 3 May 23rd 05 12:25 AM
Protecting / Hiding the Code DBAL[_5_] Excel Programming 4 August 20th 04 07:19 PM
Protecting buttons with VB code rather than protecting sheets/books? StargateFanFromWork Excel Programming 2 July 16th 04 04:03 PM
Hiding/Protecting the code of macro Mario[_6_] Excel Programming 6 January 15th 04 09:06 PM
Hiding/Protecting vb code in excel IanStrange Excel Programming 1 November 10th 03 10:37 AM


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