Hi hope someone can help I have a vba that is working really well but i need to modify it slightly, currently it’s searching dependent on the value of a cell,
this works fine if the content in “C2” is exactly right, but I’m using for ref numbers and they are long and complex is there a way to add a wild card or something so the vba will search for all matches, for example :
If C2 was 357, the vba would pick up 357, 2357, 3579, etc.
hope I’ve explained this enough if you want or need more let Me know
many thanks
dave8899
VBA Code:
searchvalue = reportsheet.Range (”C2”) .Value
this works fine if the content in “C2” is exactly right, but I’m using for ref numbers and they are long and complex is there a way to add a wild card or something so the vba will search for all matches, for example :
If C2 was 357, the vba would pick up 357, 2357, 3579, etc.
hope I’ve explained this enough if you want or need more let Me know
many thanks
dave8899