LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default I got an Excel Macro/Security question that is driving me nuts.....

John, good points as always. Can't really argue with most of them and I
enjoyed the discussion. I also look forward to meeting with you on other
posts. Thanks for your time and knowledge.
--
RMC,CPA


"John Wilson" wrote in message
...
Richard,

the security of a password to open a file, as I understand it,
is much tougher than the security of passwords on code or on sheets.

Very true. Most of the password crackers that you can buy to
break that password use brute force and can take a few days to
accomplish their task depending on the password.

That is, it would take a much better expert to crack that PW.

That it would ($45.00 to www.lostpasswords.com)
Also, the 2nd file could be placed in a secure directory.

In your scenario though, that second file is opened via
VBA from the first file. In order to do that, the password and
any necessary code to get to that file and open it would have
to be in the VBA coding of the first file. Least common denominator
is the VBA in the first file. Once that's cracked and you can see the
code, the rest is child's play.

Therefore, I could not agree that it is equally futile.

The extent of futility depends on the knowledge and experience
of the user that you're trying to protect it from. Granted, there are
many who don't even know what a macro is and for them, protecting
a workbook and VBA code would probably work well. I'm
certain that most, if not all, of the regular contributors to the ng's
would have no problem at all with whatever protection scheme that
you or I or anyone else could come with.

The point of all of this is that while protecting a workbook or the
VBA coding is not secure, many people still do ask for ways to
do it. Whenever I answer one of these posts, I always make it a
point to let the OP know how vulnerable it is. If they still decide
to use whatever I give them, it's their choice. To give the OP
the impression that there *is* a way within Excel to make their
work safe and secure from prying eyes would be to mislead them.

John



"R. Choate" wrote:

John,
All decent points. However, I think it is easier to secure a file that a
user isn't already in than one which is already open. First, the security

of
a password to open a file, as I understand it, is much tougher than the
security of passwords on code or on sheets. That is, it would take a much
better expert to crack that PW. Also, the 2nd file could be placed in a
secure directory. Again, another layer. You could be clever for additional
security with the 2nd file option. Therefore, I could not agree that it is
equally futile.

However, your point about the OP not mentioning security problems is quite
valid and I am guilty of over-discussing the security issue for this post.
I'll end it here.
--
RMC,CPA

"John Wilson" wrote in message
...
Richard,

Well, if the user doesn't know where the 2nd workbook is, or what the

name
of it is, or what the PW is, then those things might keep the user out.

Whether there's one workbook or two doesn't really matter. If the user
is experienced enough to crack the VBA password (which isn't all that
difficult), I'm sure he/she would easily be able to find the name, path

and
password to the second workbook within the code. Attempting to use
any home made protection scheme is nothing more than an exercise
in futility.

I'm guessing from the OP's post (though he didn't make it crystal clear)
that he had a workbook that depended on macros to operate correctly
and wanted to insure that they were enabled. I didn't get the impression
that he wanted to protect it from anyone. If that was his intent, the

"hide
all sheets except one" should work rather well.

John

"R. Choate" wrote:

Well, if the user doesn't know where the 2nd workbook is, or what the

name
of it is, or what the PW is, then those things might keep the user out.

That
is at least more secure than having all the goodies right there in the

file
with the dead macros.
--
RMC,CPA

"Henry" wrote in message
...
Jon,
Its a Catch 22 situation.
What're you gonna use to stop the user opening the workbook... a macro?
But the user has just disabled macros!!!

ATB
Henry

"Jon" wrote in message
...
Is there a way to allow a user to open a workbook ONLY if they have

allowed
the macros to execute? I've searched and searched for a proper setting

for
this but haven't been able to come up with squat yet. I know that

there
has
to be a way.....someone help, please before I lose the rest of my
mind.........


Thank you.


Jon




 
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
A Really Stupid Obvious Question that is Driving Me Nuts Capt. Attitude Excel Discussion (Misc queries) 2 October 18th 06 06:23 PM
Need Help, this is driving me nuts heitorfjr Excel Discussion (Misc queries) 2 January 15th 06 03:10 PM
question driving me nuts Esaam New Users to Excel 4 December 6th 05 05:34 AM
question driving me nuts Esaam Excel Discussion (Misc queries) 3 December 1st 05 06:03 PM
Excel / VB is driving me nuts!! Andrew Excel Worksheet Functions 2 November 29th 04 04:06 AM


All times are GMT +1. The time now is 09:27 AM.

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"