LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Modifying a protect unprotect macro

Colin Hayes laid this down on his screen :
In article , GS writes
Colin Hayes pretended :
...I just want my answer to the first Yes / No prompt to be
implemented to all sheets in the workbook rather than be asked for a
decision on each one in turn. In the calendar project which we were
discussing this means 12 popups boxes every time. I was hoping it
would be a simple thing.


So then, to achieve this more easily, move the iteration into a
front-loader sub and ask the Q there 1x. Revise your protect proc
accordingly. I think you'll be happier with this approach! (If I get
time I'll modify the calendar project to demonstrate this and email a
copy to you)


Hi Garry

Yes , thank you. That would be very kind.

The protect unprotect macro I have been using , and seek to modify , is not
specific to any workbook. It protects / unprotects any open book you run it
on.

I was seeking a modification whereby a popup would request whether the user
wished a more sophisticated protect with specific permissions , or a simple
one. The Yes or No answer would provide this and act accordingly on all the
sheets in the workbook. It's just a generic macro. I see entirely what you're
saying , and agree with the modifications you suggest but modifying specific
workbooks to match the macro kind of defeats the generic integrity doesn't
it? Or do I have this wrong?

^_^


Best Wishes


Giving the user permission options is the way to go <IMO. Albeit they
can use the Excel dialog to do this but that means they get to use
their own password (if any). Having our own substitute for the built-in
dialog gives us the best of both, leaving the password issue to our app
only.

Your interest to go this route has inspired me to update my own proc
how I've been wanting to, but never made time to do so. Now I have an
excuse! I think you'll get the idea after you see the sample...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
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
Qualifying permissions in protect unprotect macro. Colin Hayes Excel Discussion (Misc queries) 4 April 26th 11 05:06 AM
Protect and Unprotect all worksheets with macro Joe M. Excel Discussion (Misc queries) 2 January 22nd 10 09:26 PM
Macro to Protect OK, Unprotect now messed up! Stilla Excel Worksheet Functions 12 January 7th 09 02:22 PM
400 Error in Unprotect/Protect Macro Youngergirl44 Excel Discussion (Misc queries) 1 September 23rd 08 01:29 PM
protect / unprotect VBA project by macro sylvain Excel Discussion (Misc queries) 0 July 31st 06 06:09 PM


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