I have a Workbook that has around 400 hidden sheets. I need to do a consolidation of data from 104 of those hidden sheets.
I have a list of the different tab names in a database inside the workbook in Tab HALB List (or Sheet 1) Column C Benchmix (C5:C308).
I found a code that would unhide with an if statement (Below). However I need to be more selective. My Tab names are number based similar to this 12345678_rev_012345678910. The first 8 digits are key. How can I write a code to cover only the data I need to unhide for this task?
Any assistance is greatly appreciated.
Eric
I have a list of the different tab names in a database inside the workbook in Tab HALB List (or Sheet 1) Column C Benchmix (C5:C308).
I found a code that would unhide with an if statement (Below). However I need to be more selective. My Tab names are number based similar to this 12345678_rev_012345678910. The first 8 digits are key. How can I write a code to cover only the data I need to unhide for this task?
Code:
[COLOR=#000000]Sub Unhide_Sheets_Containing()[/COLOR]Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If InStr(ws.Name, "pivot") > 0 Then
ws.Visible = xlSheetVisible
End If
Next ws
[COLOR=#000000]End Sub[/COLOR]
Any assistance is greatly appreciated.
Eric