View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default VBAProject Protect

Hiding a sheet shouldn't be affected by project protection. It would be
affected if the workbook structure is protected.

--
Regards,
Tom Ogilvy

"Kevin" wrote in message
...
The following code is present in a subroutine in a
standard module.

Sheets("NEXTRECORD").Visible = xlVeryHidden

No problem as long as the VBAProject is not protected.

What code would I use to protect and unprotect the
VBAProject?

Thanks in advance.


Kevin