
Às vezes escolhemos o modo Hidden ou muito oculto (Com este recurso as abas do Excel ficam muito escondidas e não podem ser reexibida pelo usuário ou através da opção Reexibir. Somente através de você ou usando o Editor do Visual Basic.
Sub HideActiveSheet()Dim myChoice as StringIf ActiveWorkbook Is Nothing Then Exit SubmyChoice = MsgBox("Do you want the active sheet to be Very Hidden ? ", vbQuestion + vbYesNoCancel)Select Case myChoiceCase vbYesActiveSheet.Visible = xlSheetVeryHiddenCase vbNoActiveSheet.Visible = xlSheetHiddenCase vbCancelExit SubEnd SelectEnd Sub
Tags: VBA, Excel, worksheet, hide, oculto

