View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Error 400 on making row visible on a protected sheet

Unprotect the sheet
change the rows
protect the sheet

Look at the Protect and Unprotect methods of the Worksheet object.

--
Regards,
Tom Ogilvy

wrote in message
ups.com...
I have a button which kicks off a VBA method which either hides or
unhides rows on a Worksheet.

I'd like to protect the worksheets but if I do an Error 400 occurs when
the VBA attempts to change a row's status from visible to invisible.

I've tried various protection settings but I still get the same error.

Is there one I should have tried?

Any suggestions? Should I have VBA unprotect/protect the sheet?