I am looking to unhide the exact same named sheet in multiple workbooks. The worksheet is called ADMIN_Export. All the workbooks are in the same directory.
I've looked around and haven't been able to find something to fit this exactly, been trying to work around it with limited coding background and have come close. This is close: How can I run one VBA macro on all the (closed) Excel files in a folder?
So I am using this, but need the actual
Sub unhide()
Dim myfiles, wb As Workbook, ws As Worksheet
myfiles = Dir(Thisworkbook.Path & "\*.xlsx")
Do While Len(myfiles) <> 0
Debug.Print myfiles
'~~> Should this be read-only? Or just regular open?
Set wb = Workbooks.Open(Thisworkbook.Path & "\" & myfiles, , True)
'~~> This is where I need help with unhiding
wb.Close False
Set wb = Nothing '~~> clean up
myfiles = Dir
Loop
End Sub
Thanks in advance for your help.