Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Workbook_Info()
On Error Resume Next With Sheets("1:50") ' If sheet is NOT sheet1 or sheet3 then ..Select ActiveSheet.Unprotect Range("R59").Select ActiveCell.FormulaR1C1 = "=MAX('Page 1:" & Worksheets(Worksheets.Count).Name & "'!R[0]C[-8])" ActiveSheet.protect DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowFormattingCells:=True End With End Sub The above code places the MAX value in cell R59 in ALL sheets in my workbook. But i have discovered that i DO NOT want it to be placed in 2 sheets of the workbook. Sheet1 and Sheet3. How can skip sheet1 and 3 so they are not included in the code above? Corey.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print sheets by "All Sheets in workbook, EXCEPT for specific named sheets". Possible? | Excel Programming | |||
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Programming | |||
Macro for filter on protected workbook that works for all sheets, no matter what sheets are named? | Excel Programming |