![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: May 2002
Posts: 485
|
Why are my macro not running when I protect my worksheet? Did I do something wrong or is that just how it is?
It's a simple macro (well a simple number of macros). They are all sort macros. Can I get the macro to run when the sheet is protected? If so please share the "how to". Thanks in advance |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Is it not running at all or running and producing an error?
If no password
If there is a password
Tom [ This Message was edited by: TsTom on 2002-05-14 20:06 ] |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Does the macro in question try to select any "locked" cells on the protected worksheet? or does it try to format any of these cells, or does it try to look at the locked cells in a funny way? If the answer to these is "yes", then you'll need to un protect your worksheet before running your macro, have a quick search on this site on how to do this using VBA, it's pretty simple.
If the answer was "no" to any of those questions, except for the last one, then paste as much of your code as is necessary to let us see if we can spot the problem. (note:: All cells are "locked" by default) |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: May 2002
Posts: 485
|
Amazing!! It worked like hell!
You guys are good....thanks Tom. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|