Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Protection problem macro

Hi All...........

Would it be possible to have a Macro that would, upon opening a workbook,
just sit there and wait, whether the user does some cell entries or not,
but when they particularly do the sequence Tools Protection and either
"Unprotect sheet" or "Unprotect workbook" the macro would come alive and
cause the whole workbook to close without saving......."unless" the user had
entered the code "1.5" in a particular cell (say F3) before they did that
sequence? Or, if this isn't feasible, perhaps another method that would
prevent a "password busting" programs from working.

Any help would be much appreciated.

Vaya con Dios,
Chuck, CABGx3




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Protection problem macro

A password breaking macro does not use the menus, so even if you could get
what you described, it wouldn't interfere with a macro.

Another problem with the whole concept of using a macro to stop a user is
that there is no way to make a macro run. A user can always disable macros.

--
Jim Rech
Excel MVP
"CLR" wrote in message
...
| Hi All...........
|
| Would it be possible to have a Macro that would, upon opening a workbook,
| just sit there and wait, whether the user does some cell entries or not,
| but when they particularly do the sequence Tools Protection and
either
| "Unprotect sheet" or "Unprotect workbook" the macro would come alive and
| cause the whole workbook to close without saving......."unless" the user
had
| entered the code "1.5" in a particular cell (say F3) before they did that
| sequence? Or, if this isn't feasible, perhaps another method that would
| prevent a "password busting" programs from working.
|
| Any help would be much appreciated.
|
| Vaya con Dios,
| Chuck, CABGx3
|
|
|
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Protection problem macro

You can certainly use a Workbook_Open macro to reassign the OnAction
item for the Unprotect Sheet... and Unprotect workbook... menu items.
Then use a Worksheet_Change event macro to reset the controls if the
code is entered in F3.

However, that still won't prevent a password busting program from
working.



In article ,
"CLR" wrote:

Hi All...........

Would it be possible to have a Macro that would, upon opening a workbook,
just sit there and wait, whether the user does some cell entries or not,
but when they particularly do the sequence Tools Protection and either
"Unprotect sheet" or "Unprotect workbook" the macro would come alive and
cause the whole workbook to close without saving......."unless" the user had
entered the code "1.5" in a particular cell (say F3) before they did that
sequence? Or, if this isn't feasible, perhaps another method that would
prevent a "password busting" programs from working.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Protection problem macro

Ok Jim and JE , thanks for the input.........I guess my thinking has turned
around a bit because of it. I don't really care now if the "Worksheet
unprotect" action has occured by either manual manupulations of the buttons
or by a macro.........what I really care about is knowing that it HAS
occured.......and that flag used to trigger a sequence that eventually shuts
down the workbook if the code is not in F3........let 'em break the
password, I just don't want them to be able to do anything more once they've
done that.

Is it possible to know when the "worksheet unprotect" action has taken
place?

Vaya con Dios,
Chuck CABGx3






"CLR" wrote in message
...
Hi All...........

Would it be possible to have a Macro that would, upon opening a workbook,
just sit there and wait, whether the user does some cell entries or not,
but when they particularly do the sequence Tools Protection and

either
"Unprotect sheet" or "Unprotect workbook" the macro would come alive and
cause the whole workbook to close without saving......."unless" the user

had
entered the code "1.5" in a particular cell (say F3) before they did that
sequence? Or, if this isn't feasible, perhaps another method that would
prevent a "password busting" programs from working.

Any help would be much appreciated.

Vaya con Dios,
Chuck, CABGx3






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Protection problem macro

Is it possible to know when the "worksheet unprotect" action has taken
place?


I don't think so, sorry.

--
Jim Rech
Excel MVP
"CLR" wrote in message
...
| Ok Jim and JE , thanks for the input.........I guess my thinking has
turned
| around a bit because of it. I don't really care now if the "Worksheet
| unprotect" action has occured by either manual manupulations of the
buttons
| or by a macro.........what I really care about is knowing that it HAS
| occured.......and that flag used to trigger a sequence that eventually
shuts
| down the workbook if the code is not in F3........let 'em break the
| password, I just don't want them to be able to do anything more once
they've
| done that.
|
| Is it possible to know when the "worksheet unprotect" action has taken
| place?
|
| Vaya con Dios,
| Chuck CABGx3
|
|
|
|
|
|
| "CLR" wrote in message
| ...
| Hi All...........
|
| Would it be possible to have a Macro that would, upon opening a
workbook,
| just sit there and wait, whether the user does some cell entries or
not,
| but when they particularly do the sequence Tools Protection and
| either
| "Unprotect sheet" or "Unprotect workbook" the macro would come alive and
| cause the whole workbook to close without saving......."unless" the user
| had
| entered the code "1.5" in a particular cell (say F3) before they did
that
| sequence? Or, if this isn't feasible, perhaps another method that
would
| prevent a "password busting" programs from working.
|
| Any help would be much appreciated.
|
| Vaya con Dios,
| Chuck, CABGx3
|
|
|
|
|
|




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Protection problem macro

Not that I know of... You could use an OnTime macro to check every so
often. However, that doesn't prevent someone from opening the file with
macros disabled...

In article ,
"CLR" wrote:

Is it possible to know when the "worksheet unprotect" action has taken
place?

  #7   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Protection problem macro

Thanks again JE.........both your OnAction and OnTime suggestions are very
interesting.........I dont know how to use them but am for sure gonna look
them up realgood...........

I do have several cells that "must" be filled in in this workorder form for
it to be useful, so was thinking about just a change event macro on those
cells to check for the protection and code in the cell and then use it to
shut things down..........bummer that the user has the opportunity to
disable macros..........is there any way to shut the workbook down if they
choose not to enable macros?.....and/or, is there any way for a "formula" to
detect if the worksheet is protected or not?

Vaya con Dios,
Chuck, CABGx3


"JE McGimpsey" wrote in message
...
Not that I know of... You could use an OnTime macro to check every so
often. However, that doesn't prevent someone from opening the file with
macros disabled...

In article ,
"CLR" wrote:

Is it possible to know when the "worksheet unprotect" action has taken
place?



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Protection problem macro

No.

If macros are disabled, they are disabled. Formulas return values to
cells - they don't close workbooks.

Sound like you need to put your sensitive items in an addin that accompanies
your workbook.

--
Regards,
Tom Ogilvy


"CLR" wrote in message
...
Thanks again JE.........both your OnAction and OnTime suggestions are very
interesting.........I dont know how to use them but am for sure gonna look
them up realgood...........

I do have several cells that "must" be filled in in this workorder form

for
it to be useful, so was thinking about just a change event macro on those
cells to check for the protection and code in the cell and then use it to
shut things down..........bummer that the user has the opportunity to
disable macros..........is there any way to shut the workbook down if they
choose not to enable macros?.....and/or, is there any way for a "formula"

to
detect if the worksheet is protected or not?

Vaya con Dios,
Chuck, CABGx3


"JE McGimpsey" wrote in message
...
Not that I know of... You could use an OnTime macro to check every so
often. However, that doesn't prevent someone from opening the file with
macros disabled...

In article ,
"CLR" wrote:

Is it possible to know when the "worksheet unprotect" action has taken
place?





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
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Problem with protection of cells Paul Excel Discussion (Misc queries) 3 October 30th 06 02:36 PM
VB Protection problem Rmagic Excel Worksheet Functions 1 November 22nd 05 10:27 PM
Protection Problem Dave123 Excel Discussion (Misc queries) 1 October 3rd 05 06:45 PM
sheet protection problem Deer Hunter Excel Programming 2 August 13th 03 10:47 AM


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