I need to find a partial string in row 1 of a sheet
e.g. find "Item.Value" where E1 is "Item.Value01", F1 is "Item.Value02" etc..
I need to return 'E' or number 5 to indicate the column.
I've written a function that uses Application.WorksheetFunction.Find - but this doesn't seem to work.
Code...
findval = Application.WorksheetFunction.Find(MatchVal, "'Item#'!A1")
Where I have a loop to substitute the cell value, the sheet is called Item# and the value is contained in the string MatchVal.
Anyone spot my mistake ? There must be one !
Cheers for your help.
e.g. find "Item.Value" where E1 is "Item.Value01", F1 is "Item.Value02" etc..
I need to return 'E' or number 5 to indicate the column.
I've written a function that uses Application.WorksheetFunction.Find - but this doesn't seem to work.
Code...
findval = Application.WorksheetFunction.Find(MatchVal, "'Item#'!A1")
Where I have a loop to substitute the cell value, the sheet is called Item# and the value is contained in the string MatchVal.
Anyone spot my mistake ? There must be one !
Cheers for your help.