Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I have a macro (see below) and it works great. The only problem I am having is that I want to be able to see in locked cells, and the macro only lets me go into unlocked cells. I do not want to change the locked cells, just be able to see formula and where it comes from. Could anyone tell me what I am doing wrong with this macro?? Any help is greatly appreciated. For Each Sheet In Worksheets Range("A1").Select If Sheet.ProtectContents = False Then Sheet.Protect Password:="2568", _ DrawingObjects:=True, Contents:=True, _ Scenarios:=True, AllowFormattingCells:=True, _ AllowFormattingColumns:=True, _ AllowFormattingRows:=True EnableSelection = xlUnlockedCells End If Next Sheet Range("A1").Select ' ActiveSheet.UnProtect Password:="2000" MsgBox "All sheets are now protected!" End Sub -- thank you mac |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
AV probelm with Office 2007 | Excel Discussion (Misc queries) | |||
Probelm opening an excel 2000 file in excel 2003 | Excel Discussion (Misc queries) | |||
Hyperlink probelm | Excel Worksheet Functions | |||
Hyperlink probelm | Excel Discussion (Misc queries) |