Thanks to Geoff I can now add a wildcard search into my macro the trouble is it now has to create a sheet with the search name in it.
Is there anyway of changing a variable to remove the * only
i.e
sheetcode = AAA*
sheets.add
activesheet.name= sheetcode
This is how I do it at present
What I want is a sheet just called AAA not AAA*
Does that make sense? Obviously I have no idea of what the codes will be in a given sheet
Is there anyway of changing a variable to remove the * only
i.e
sheetcode = AAA*
sheets.add
activesheet.name= sheetcode
This is how I do it at present
What I want is a sheet just called AAA not AAA*
Does that make sense? Obviously I have no idea of what the codes will be in a given sheet