Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Entries in a combobox are strings, so it sounds like Vlookup can't find the
match (a string won't match a date) Dim results as Variant results = Application.Vlookup(cDate(combobox1.Value), Range("Sheet5!A1:F365"),4,False) if iserror(results) then msgbox combobox1.Value & " was not found" else msgbox results " is the result" End if -- Regards, Tom Ogilvy "Dean" wrote in message ups.com... to add to this (as I'm sure it will affect the answer), the list is a list of Dates. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Runtime Error 1004 | Excel Discussion (Misc queries) | |||
Runtime Error '1004' | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Runtime error 1004 | Excel Programming | |||
Runtime error 1004 | Excel Programming |