Hi,
Can anyone help with the following?
I have some code below that doesn't seem to work. My first question is why? and my second question is- is there a better way of solving this problem as the client seems to alternate between values for 'Forename' eg 'Firstname', 'First name', 'InitialsForename', 'FN'?
If IsError(Application.WorksheetFunction.Match("Forename", HeaderRange, 0)) = True Then
FN = Application.WorksheetFunction.Match("First Name", HeaderRange, 0)
Else: FN = Application.WorksheetFunction.Match("Forename", HeaderRange, 0)
End If
Any help would be great
...still learning!
Can anyone help with the following?
I have some code below that doesn't seem to work. My first question is why? and my second question is- is there a better way of solving this problem as the client seems to alternate between values for 'Forename' eg 'Firstname', 'First name', 'InitialsForename', 'FN'?
If IsError(Application.WorksheetFunction.Match("Forename", HeaderRange, 0)) = True Then
FN = Application.WorksheetFunction.Match("First Name", HeaderRange, 0)
Else: FN = Application.WorksheetFunction.Match("Forename", HeaderRange, 0)
End If
Any help would be great
...still learning!