waterbottle2
New Member
- Joined
- Jun 15, 2015
- Messages
- 25
Hey there. I'm trying to create a macro that unlocks all cells on all worksheets in the active workbook. I've gotten it to work on the active worksheet, but I can't figure out how to make the macro apply to all worksheets. This is what I have so far:
Code:
Sub UnlockCells()
'
' UnlockCells Macro
'
' Keyboard Shortcut: Ctrl+Shift+O
'
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
Cells.Select
Selection.Locked = False
Selection.FormulaHidden = False
Next ws
End Sub