Hi
I am using the Vlookup function with worksheetfunctions in VBA but i am getting the "Subscript out of range error"
Please helpPlease Login or Register to view this content.
Hi
I am using the Vlookup function with worksheetfunctions in VBA but i am getting the "Subscript out of range error"
Please helpPlease Login or Register to view this content.
Last edited by letmeexcel; 09-20-2016 at 04:25 AM. Reason: [CODE]
Hi,
That error can only mean that the name of the ListObject is not DataTable123.
Don
Please remember to mark your thread 'Solved' when appropriate.
Hi
The name is correct. I checked that.
Basically i want to use the table "DataTable123" as the table_array argument of the VLOOKUP function. But i am not able to
Is there any other way? For trying purpose, i put the argument as Range("A2:D63") but still couldn't get through
Thanks
For a subscript out of range error to occur that name is not the name of a ListObject on the worksheet whose codename is Sheet1. There is no other possible cause.
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
Used this and i get a 'Type Mismatch" error now.Please Login or Register to view this content.
Last edited by letmeexcel; 09-20-2016 at 04:27 AM.
Used this and i get a 'Type Mismatch" error now.Please Login or Register to view this content.
Last edited by zbor; 09-20-2016 at 04:28 AM. Reason: Code tags
That means that the returned value is not a number. Either the lookup cell contains something that cannot be converted to a number, or the lookup value cannot be found and the function is returning an error value.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks