![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 60
|
I want to run a macro from the active sheet but I want to unprotect a different sheet so I can change a formula in it. I've tried:
Worksheet("sheet2").Unprotect while the active sheet is "sheet1". This didn't work, I get an error message that says "Sub or Function Not Defined". What is the correct command? Mechanic |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: =ActiveCell.Address
Posts: 478
|
Try
Sheets("Sheet2").Unprotect instead. Rgds AJ |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|