Hi all...
I have a closed workbook with the column "CUSTOMER" and "DATE".
I would like to import this worksheet into the current workbook but based on rules e.g.
The value in the current cell for CUSTOMER = "ABC1" and the date is =>"01/01/2010"
How would I do this? I thought the best method would be with ADO? Or have excel define the usedrange of the workbook containing the data then do an analysis for each ROW copying when the criteria is true, then looping until all ROWS have been checked?
Open Workbook
Define last row
Row(1) check if CUSTOMER = "x" and DATE => "y"
TRUE - copy ROW to current workbook (next blank row)
FALSE - step the Row count and continue the loop
Last Row reached, end the macro
I know SQL would make this easy peasy but not sure it can be used, so maybe the logic above would help?
Really stuck on this so any help appreciated...