Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tf tf is offline
external usenet poster
 
Posts: 7
Default Importing VB code and having it password protected

Can I allow someone to import a module, but have it password protected upon
importing so that they are not able to see the code? If not, is there
anything else I could do to avoid the code from being viewed?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Importing VB code and having it password protected

The only way to hide VBA code is to password protect the project.
In order to insert a module, the project cannot be protected.
Hence, no way to hide the code.
If you automat the process, the user will not have chance to view it.
However, the only way to unprotect a project is manually or using SendKeys.

I have seen methods of turning the code in apparent gibberish, but still
runs as intended. Can't remember the name/product now, but will let you
know.

If you code is that important and secret, you should find a better update
method and/or not use Excel.

NickHK

"tf" wrote in message
...
Can I allow someone to import a module, but have it password protected

upon
importing so that they are not able to see the code? If not, is there
anything else I could do to avoid the code from being viewed?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
tf tf is offline
external usenet poster
 
Posts: 7
Default Importing VB code and having it password protected

Thanks, that's what I thought. Really, it's not that the code is a secret -
it's just that I didn't want others to try to change it and create a mess of
their systems. I just wanted to minimize accidents if at all possible. There
are about 20 systems this code needs to be imported into and it's an excel
based program. We have updates for each program that are tedious and time
consuming, so this code will make everything updatable in a matter of seconds
once imported.

Thanks again -

"NickHK" wrote:

The only way to hide VBA code is to password protect the project.
In order to insert a module, the project cannot be protected.
Hence, no way to hide the code.
If you automat the process, the user will not have chance to view it.
However, the only way to unprotect a project is manually or using SendKeys.

I have seen methods of turning the code in apparent gibberish, but still
runs as intended. Can't remember the name/product now, but will let you
know.

If you code is that important and secret, you should find a better update
method and/or not use Excel.

NickHK

"tf" wrote in message
...
Can I allow someone to import a module, but have it password protected

upon
importing so that they are not able to see the code? If not, is there
anything else I could do to avoid the code from being viewed?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
tf tf is offline
external usenet poster
 
Posts: 7
Default Importing VB code and having it password protected

Just thought of something. I can create it as an add-in. They can then save
the password protected file to their hard drive and everybody's up and
running.

"tf" wrote:

Thanks, that's what I thought. Really, it's not that the code is a secret -
it's just that I didn't want others to try to change it and create a mess of
their systems. I just wanted to minimize accidents if at all possible. There
are about 20 systems this code needs to be imported into and it's an excel
based program. We have updates for each program that are tedious and time
consuming, so this code will make everything updatable in a matter of seconds
once imported.

Thanks again -

"NickHK" wrote:

The only way to hide VBA code is to password protect the project.
In order to insert a module, the project cannot be protected.
Hence, no way to hide the code.
If you automat the process, the user will not have chance to view it.
However, the only way to unprotect a project is manually or using SendKeys.

I have seen methods of turning the code in apparent gibberish, but still
runs as intended. Can't remember the name/product now, but will let you
know.

If you code is that important and secret, you should find a better update
method and/or not use Excel.

NickHK

"tf" wrote in message
...
Can I allow someone to import a module, but have it password protected

upon
importing so that they are not able to see the code? If not, is there
anything else I could do to avoid the code from being viewed?

Thanks




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
Enable code in a password protected worksheet Barattolo_67 Excel Discussion (Misc queries) 3 February 14th 10 12:51 PM
Importing from Password Protected Sheet workerboy Excel Worksheet Functions 0 June 5th 06 08:20 PM
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
Access protected VB code by initiating password dialog box WashoeJeff Excel Programming 0 January 30th 04 06:09 AM


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