Sam,
When the "Array_Dates" was a table on the spreadsheet, the procedure took 10
seconds, switching to and array caused a huge increase. This must be
happening because I have not named "Array_Dates" as a table - I think the
lookup is somehow examining every cell in the array until it finds a hit (it
will always find a hit).
I know there must be a way to name and set an array as a table - I just
haven't found it yet.
Thanks,
Ken
Print_Line_Array(Output_Row_Number, 8) =
Application.WorksheetFunction.VLookup(Lookup_Date, Array_Dates, 2, True)
' Days In Month
"Sam Wilson" wrote:
> Post the code, or the relevant bits of it.
|