Excel VBA macro protection

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2009
Posts: 3
Reputation: jogreenwood is an unknown quantity at this point 
Solved Threads: 0
jogreenwood jogreenwood is offline Offline
Newbie Poster

Excel VBA macro protection

 
0
  #1
Jul 21st, 2009
Hi,

I do need help with following problem. We have a password protected excel sheet with *complicated* macros in VBA. VBA code is protected, but some of our traders can still copy whole xls file and run it on private computers (strictly prohibited, but they violate rules and do it). Is there a way how to use xls file on just certain computers?

Any good idea how to solve this problem is greatly appreciated.

Thank you,

Jo Greenwood
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: trebormac is an unknown quantity at this point 
Solved Threads: 0
trebormac trebormac is offline Offline
Newbie Poster

Re: Excel VBA macro protection

 
0
  #2
Jul 22nd, 2009
Originally Posted by jogreenwood View Post
Hi,

I do need help with following problem. We have a password protected excel sheet with *complicated* macros in VBA. VBA code is protected, but some of our traders can still copy whole xls file and run it on private computers (strictly prohibited, but they violate rules and do it). Is there a way how to use xls file on just certain computers?

Any good idea how to solve this problem is greatly appreciated.

Thank you,

Jo Greenwood
If the macro is stored in the personal.xls, they should not be able to axccess it when the file is copied and run on another computer.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 3
Reputation: jogreenwood is an unknown quantity at this point 
Solved Threads: 0
jogreenwood jogreenwood is offline Offline
Newbie Poster

Re: Excel VBA macro protection

 
0
  #3
Jul 23rd, 2009
Sorry if my description was confusing - the goal is to give them mild slap on the wrist but xls file must be fully transferable over mail and filesystem, no installation issues etc. We would probably need to read (don't know how to do it ) serial number of windows and then check up if it is on the list or not - that is all.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: jfox1968 is an unknown quantity at this point 
Solved Threads: 0
jfox1968 jfox1968 is offline Offline
Newbie Poster

Re: Excel VBA macro protection

 
0
  #4
Jul 23rd, 2009
I had to deal with almost identical problem, finally found CID library I hope that it could be helpful for you.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2
Reputation: chadbh74 is an unknown quantity at this point 
Solved Threads: 0
chadbh74 chadbh74 is offline Offline
Newbie Poster

Re: Excel VBA macro protection

 
0
  #5
Jul 26th, 2009
You can also use API calls within the VBA coding to compare a computer's hard drive serial, user name, windows version, user name, etc. to an "allowed" list and have the code deny access or functionality based on this. I did this for a VBA/Excel project at work Permitted users/computers are allowed full function while others on the network accessing the file must provide a password to achieve same functionality.
Also used same principle in a old VB 6 project as part of a registration method to tie Unlock Codes to a specific program-generated serial number. This serial number was mathematically produced from the API information I mentioned above.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC