I'm currently tearing my hair out on this one. I'm trying to run
through a bunch of worksheets in a bunch of workbooks and only run an
import on the ones that match the type of name I'm looking for.
I thought it would be a simple matter of:
sheetRange = xlSheet.Name
If sheetRange = "AOD*" Then
Do
--
--
--
So what happens if I print out the sheetrange is it says AODblahblah
but will not go into the if statment, is this not a wildcard? I have
declared sheetrange to be both a variant and a string but it doesn't
seem to make any difference.
Any help would be much appreciated, surely it can't really be as hard
as I'm making it?
Thanks