vba hide code by storing it in a dll and calling it code example
Example: vba sheet hide unhide
' Classic sheets
Worksheets("Sheet1").visible = xlSheetHidden
Worksheets("Sheet1").Visible = xlSheetVisible
' Very Hidden sheets
Worksheets("Sheet1").Visible = xlSheetVeryHidden
Worksheets("Sheet1").Visible = xlSheetVisible