Good morning, I have a macro to unprotect a worksheet, hide empty rows & then reprotect the worksheet. I want to allow users to color code (format cells) after his macro run. It seems like an easy fix but I'm struggling. Any help would be appreciated as my boss is really wanting this enhancement. Code below
Sub HideAllRows()
'Hides everything without a quantity in column H. Used for all three sales teams as well as Bid Desk when hiding everything if we've added something custom
Unprotect Password:="Test"
For Each cell In Range("H18:H458")
cell.EntireRow.Hidden = cell.Value = 0
Next cell
allowformatingcells = true (this is the line that I'm playing with that isn't working)
Protect Password:="Test"
End Sub
Thanks a bunch for any help provided
Sub HideAllRows()
'Hides everything without a quantity in column H. Used for all three sales teams as well as Bid Desk when hiding everything if we've added something custom
Unprotect Password:="Test"
For Each cell In Range("H18:H458")
cell.EntireRow.Hidden = cell.Value = 0
Next cell
allowformatingcells = true (this is the line that I'm playing with that isn't working)
Protect Password:="Test"
End Sub
Thanks a bunch for any help provided