gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
what is the vba code to unhide a sheet and then to hide the sheet
- User
what is the vba code to unhide a sheet and then to hide the sheet
- Assistant
To unhide a sheet, use the following VBA code:
codeSheets("Sheet1").Visible = TrueTo hide the same sheet again, use this code:
codeSheets("Sheet1").Visible = FalseReplace "Sheet1" with the name of the sheet you want to hide or unhide.