Previous in Forum: Windows 8 to 7   Next in Forum: Adobe Abandons Creative Suite for Creative Cloud
Close
Close
Close
9 comments
Rate Comments: Nested
Power-User

Join Date: Feb 2011
Location: Shimurali, Westbengal,India
Posts: 119

Security of a VBA Through a Pendrive

05/06/2013 12:00 AM

I make a VBA application which I want to protect by using a pendrive as a key. My intension is to create an icon in the desktop which when double clicked, check the availability of the program strored in the pendrive. This pendrive contain a program which then open the folder and then open the VBA application. User should be unable to view the folder and VBA i.e. excel file.When VBA close then the folder and VBA should be hide and not shown any way.

Please help to to do this.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Oct 2008
Posts: 42355
Good Answers: 1693
#1

Re: Security of a VBA through a pendrive

05/06/2013 12:20 AM
Register to Reply
Power-User

Join Date: Oct 2008
Location: Troy, NY
Posts: 122
Good Answers: 4
#2

Re: Security of a VBA Through a Pendrive

05/06/2013 9:07 AM

Can you just password protect the program instead?

Register to Reply
Guru

Join Date: Sep 2009
Posts: 1056
Good Answers: 88
#3

Re: Security of a VBA Through a Pendrive

05/06/2013 2:53 PM

And what process would make the Pendrive non-copyable? S.M.

__________________
Life is complex. It has a real part and an imaginary part.
Register to Reply Score 1 for Good Answer
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#7
In reply to #3

Re: Security of a VBA Through a Pendrive

05/07/2013 10:28 AM

Exactly my question. GA.

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Guru
New Zealand - Member - Kiwi Popular Science - Weaponology - New Member Engineering Fields - Power Engineering - New Member Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: Auckland, New Zealand
Posts: 8777
Good Answers: 376
#4

Re: Security of a VBA Through a Pendrive

05/06/2013 3:22 PM

What you want is a USB Dongle, which is a hardware rather than software solution in a USB stick format. This is much harder to copy unlike a file on a memory stick.

Dongle.

Using the existing Excel protection and password settings is much easier and cheaper but a Dongle has enhanced security against copying.

What are you trying to protect and is it valuable enough to warrant the extra expense of a Dongle?

Many high end software packages have Dongle protection but they can justify the expense.

If it were me I would use the existing software password protection and just change the password for each and every different spreadsheet I sell. About the best protection you can get without going overboard and spending hundreds or thousands on Dongle hardware that could never be justified when weighed against potential losses due to piracy.

__________________
jack of all trades
Register to Reply Score 1 for Good Answer
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#8
In reply to #4

Re: Security of a VBA Through a Pendrive

05/07/2013 10:29 AM

GA

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Guru

Join Date: Mar 2011
Location: Sebastopol, California
Posts: 1205
Good Answers: 54
#5

Re: Security of a VBA Through a Pendrive

05/06/2013 10:47 PM

Give it up. The best you can do with a human readable application like a VBA script is to encrypt the pendrive. Or, you could put the spreadsheet into Google drive read only and distribute the link.

__________________
Most people are mostly good most of the time.
Register to Reply
Guru
New Zealand - Member - Kiwi Popular Science - Weaponology - New Member Engineering Fields - Power Engineering - New Member Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: Auckland, New Zealand
Posts: 8777
Good Answers: 376
#6
In reply to #5

Re: Security of a VBA Through a Pendrive

05/07/2013 12:28 AM

'Cloud' access for copyright security purposes, hadn't thought of that.

__________________
jack of all trades
Register to Reply
Associate
India - Member - New Member

Join Date: Dec 2006
Location: Ahmedabad, Gujarat State, India
Posts: 32
#9

Re: Security of a VBA Through a Pendrive

05/09/2013 5:19 AM

Hi!
Your worry seems to be restricting unauthorised copy of your Excel workbook getting circulated.


You can not prevent getting the workbook copied.But you can prevent use of the unauthorised copy by adopting clever checks.


Your VBA project in the workbook open module can have a procedure to gather details of environment of the computer on which the Excel workbook resides. When the details do not match with the authorised parameters, the entire workbook can be deleted by the "KILL" command from within the module.


The unauthorised user may not understand what is happening and he may stop trying to get pirated copy.


However, your VBA project password may not be strong enough and if it is cracked and the code is read, this trick does not work.


Mahess

Register to Reply
Register to Reply 9 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Andy Germany (2); Deefburger (1); jack of all trades (2); lyn (1); Mahess Desai (1); SimpleMind (1); terrapin (1)

Previous in Forum: Windows 8 to 7   Next in Forum: Adobe Abandons Creative Suite for Creative Cloud

Advertisement