I have written a VBA code with the following line
row = Application.WorksheetFunction.Match(ComboBox1.Value, Sheets("Agent Summary Report").Range("A1:A10000"), 0)
it returns the value of the row after value from a combobox (a name) matches a list in another worksheet. If it does not match, the program breaks with an error message.
I do not want the program to break but I want it to display a message such as "Not on report" in a cell
Any help would be much appreciated
Thanking you in anticipation
Kesh
row = Application.WorksheetFunction.Match(ComboBox1.Value, Sheets("Agent Summary Report").Range("A1:A10000"), 0)
it returns the value of the row after value from a combobox (a name) matches a list in another worksheet. If it does not match, the program breaks with an error message.
I do not want the program to break but I want it to display a message such as "Not on report" in a cell
Any help would be much appreciated
Thanking you in anticipation
Kesh