andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I have a worksheet change event that hides/unhides rows, but when my sheet is protected it doesn't work. now, the sheet is protected in vba uing this:
My understanding is that "AllowFormattingRows" should allow hiding of rows.
This line of code pops an error: 1004: Unable to set the hidden property of the range class.
any suggestions out there?
I have a worksheet change event that hides/unhides rows, but when my sheet is protected it doesn't work. now, the sheet is protected in vba uing this:
Code:
ActiveSheet.Protect "password", _ DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True
Application.ScreenUpdating = True
My understanding is that "AllowFormattingRows" should allow hiding of rows.
This line of code pops an error: 1004: Unable to set the hidden property of the range class.
Code:
Cells.EntireRow.Hidden = False
any suggestions out there?