My code is below:-
I am getting the error I mentioned in the subject. I am trying to fetch a value from the 7th column (i.e. column H) of "myRange" after matching the value of "SystemType" in the first column (i.e. column B). Current values of SystemType is of String data type and the value of Charge is of Integer.
I searched the web and found many mentions of this problem. But I could find only 2 solutions. In both cases the code writers were matching "date" data type. It seems there is a difference between excel and VB macro for that data type. The solutions suggested changing the "date" type to "Range" type and the macro worked after that.
But in my case it is not so. I am matching & fetching "variant" type data. I am using MS Excel 2010 & MS VBA 7. Thanks very much in advance.
Bookmarks