I've tried searching for this, but I can't seem to find what I"m looking for...
I'm writing some VBA code where I reference different worksheets. Now, I need to be able to use a wildcard in the worksheet name. Does anyone know if this is possible?
For instance, I need to be able to call up the worksheet "0000-1" in one workbook and then use the same code for a different workbook to call up "0000-2"...etc.
I'd like to call it using...
Sheets("0000-#).Select
Excel doesn't like the #, the * or the ? wildcards.
Any help would be greatly appreciated. Thanks!
Christina
I'm writing some VBA code where I reference different worksheets. Now, I need to be able to use a wildcard in the worksheet name. Does anyone know if this is possible?
For instance, I need to be able to call up the worksheet "0000-1" in one workbook and then use the same code for a different workbook to call up "0000-2"...etc.
I'd like to call it using...
Sheets("0000-#).Select
Excel doesn't like the #, the * or the ? wildcards.
Any help would be greatly appreciated. Thanks!
Christina