Hi there! I am here again. Now I am trying to find a tab in a worksheet, which might have different names due to formatting inconsistency.
It might be named as 08-22 or 8-22. I used wildcard "*" to replace the zero, but vba says out of range.
Set ff = fso.getfolder(folderpath)
For Each file In ff.Files
Workbooks.Open file
Sheets("*8-22").Copy Before:=Sheets("*8-22")
Sheets("*8-22 (2)").Name = "9-22"
Is this the right way to use wildcard? Sorry if some my errors are quite obvious. Thank you for your help in advance!
It might be named as 08-22 or 8-22. I used wildcard "*" to replace the zero, but vba says out of range.
Set ff = fso.getfolder(folderpath)
For Each file In ff.Files
Workbooks.Open file
Sheets("*8-22").Copy Before:=Sheets("*8-22")
Sheets("*8-22 (2)").Name = "9-22"
Is this the right way to use wildcard? Sorry if some my errors are quite obvious. Thank you for your help in advance!