Excel (VBA) unhide all worksheets

/ Published in: Visual Basic
Save to your folder(s)

VBA to unhide all worksheets in an Excel workbook.

Copy this code and paste it in your HTML
  1. Sub UnhideAllSheets()
  2. Dim ws As Worksheet
  4. For Each ws In ActiveWorkbook.Worksheets
  5. ws.Visible = xlSheetVisible
  6. Next ws
  8. End Sub

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.