Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a macro that simply looks like this:
Sheets("Template").Select ActiveSheet.Unprotect ActiveSheet.Next.Select ActiveSheet.Unprotect ActiveSheet.Next.Select ActiveSheet.Unprotect etc................ I have 72 sheets, and don't want to keep having to go in and paste in more lines everytime I add a new sheet. Is there someway to tell it to repeat the Select & Unprotect lines x number of times, which would give a MUCH shorter code! Or, maybe there is a way to tell it to keep repeating that until it gets to the last sheet in the workbook ??? Phil -- http://www.redbrick.dcu.ie/~pele |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
repeat macro formula to all cells | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
Macro to repeat formulas in next row | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) | |||
How to program an excel macro to repeat a series of keystrokes? | Excel Discussion (Misc queries) |