J
JP
You can't hide rows on a protected worksheet. Protect your sheet and
then right-click a row number or column letter, you'll see the 'Hide'
option greyed out. To allow your macro to operate on a protected
worksheet, add this code to the top of your macro:
Sheets(1).Protect Password:="Secret", UserInterFaceOnly:=True
(assuming sheet #1 is where your data is)
HTH,
JP
then right-click a row number or column letter, you'll see the 'Hide'
option greyed out. To allow your macro to operate on a protected
worksheet, add this code to the top of your macro:
Sheets(1).Protect Password:="Secret", UserInterFaceOnly:=True
(assuming sheet #1 is where your data is)
HTH,
JP