I'm new to Excel VBA and I'm trying to write code to make Excel flash up the row where the entry is. The entry I'm working on has two entries in a cell ("vbnewline"). Here's is my code and the error I keep getting is
"run-time error '1004' method match of object 'worksheetfunction' failed":
Will appreciate if there's someone who wouldn't mind helping.
I want a code formula that will tell excel to flash up the targeted row whenever i select an entry and click continue, that is my question basically.
The SpreadSheet
Combobox that's populated by a dynamic range
Main Userform code
Edit userform code that im stuck on
ColumnC_Menu
,? andRange("Dyn_Business_Name_Website")
? What should be the right answer? - Foxfire And Burns And BurnsWorksheetFunction.Match
did not find an exact match forColumnC_Menu
withinSheets("Data").Range("Dyn_Business_Name_Website")
. If you wrote an Excel formula that did exactly the same thing, that formula would evaluate to an error, too. Feel free to include a screenshot of the data, if it helps. Do I understand correctly thatColumnC_Menu
does not have thevbNewLine
characters but the lookup range does? - Mathieu GuindonApplication.Match
function (which requires capturing the returned value in aVariant
, and validating the returned value withIsError
), would allow you to handle the situation where the match fails. - Mathieu Guindon