Hi I've got the following in my code to check to see whether a reference exists in a sheet but it's not working. Has anyone got a clue why not?
If WorksheetFunction.CountIf(Sheets("SUMMARY").Range("H6:H65536"), SetRef) > 0 Then GoTo RefExists Else
SetRef is a string relating to a cell on another sheet and RefExists is a message box telling the user the reference is already included on the summary sheet.
Cheers,
rrenis
If WorksheetFunction.CountIf(Sheets("SUMMARY").Range("H6:H65536"), SetRef) > 0 Then GoTo RefExists Else
SetRef is a string relating to a cell on another sheet and RefExists is a message box telling the user the reference is already included on the summary sheet.
Cheers,
rrenis