Hi, Hope I can get some help with adding code to loop through the dates in column A of Sheet1 & compare them to the dates in Column A, Sheet2. If the date on Sheet2 is greater than Sheet1 run the MatchColumns macro.
Sheet1 accumulates jobs with recommendations through out the year. Sheet2 accumulates completed recommendations. Any row on Sheet1 without a match needs to be followed up on. Duplications are appearing as highlighted on row 15. Since the job on row 15 took place on 1/24/19, the recommendation could not have been completed prior to that date, 12/19/2018
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
I've added the following code, but I', getting a run time error
[<code>Sub CompareDates() </code><code> </code><code>If Sheet1.Range("A1") > Sheet2.Range("A1") Then
Run "MatchColumns"
End If
End Sub]
Any help would greatly be appreciated by this really novice VBA/Excel user!
Thanks in advance
</code>[/FONT]<strike></strike>
Sheet1 accumulates jobs with recommendations through out the year. Sheet2 accumulates completed recommendations. Any row on Sheet1 without a match needs to be followed up on. Duplications are appearing as highlighted on row 15. Since the job on row 15 took place on 1/24/19, the recommendation could not have been completed prior to that date, 12/19/2018
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Excel 2010 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | G | H | I | J | K | O | P | Q | R | |||
1 | Sheet1 Data | Sheet2 Data | ||||||||||||
2 | Sch Dte | Job NM | Last NM | Description | NO MATCH | Sch Dte | Job NM | Last NM | Description | |||||
3 | 12/1/2018 | 13738 - Gil Sub | Gillman | Replace Thermostat $456, Compressor & Contactor (will email Quote) | NO MATCH | |||||||||
4 | 12/3/2018 | 13740 - Dary, Haish | Dary | Estimate to replace equipment. Quote emailed | NO MATCH | |||||||||
5 | 12/3/2018 | 13745 - McCray, Vic | McCray | DS-Replace Condenser Fan Motor $700 ($595) (SCH) | RECONCILED | 12/4/2018 | 13746 - McCray, Vic | McCray | Perform Recommend work on- Condenser Fan Motor | |||||
6 | 12/8/2018 | 13772 - Dell, Erik | Del | Clear roof Cap $193 | NO MATCH | |||||||||
7 | 12/14/2018 | 13782 - Ellen, Rob | Ellen | Replace Gas Valve $668 ($567) (SCH) | RECONCILED | 12/17/2018 | 13797 - Ellen, Rob | Ellen | Perform Recommend work on- Gas Valve | |||||
8 | 12/14/2018 | 13765 - Palo, Marc | Palo | Replace Blower motor capacitor $208, Hard star kit $327, Pull & clean blower assembly $275, or Replace Blower motor $665. Upgrade equipment | NO MATCH | |||||||||
9 | 12/17/2018 | 13799 - Kane, Cage | Kane | Replace unit with York package unit. $5,900 | NO MATCH | |||||||||
10 | 12/18/2018 | 13790 - Moss, Ren | Moss | Estimate to replace equipment or ductwork. Will email quote when we get pricing from electrician. Quote emailed on 12/19/2019 for estimate. | RECONCILED | 12/19/2018 | 13774 - Moss, Ren 2925 | Moss | Performed recommend work on Ductwork | |||||
11 | 12/18/2018 | 13796 - Kell, Suz | Kell | Estimate to replace equipment. Quoted-Standard York system $7,778 less 10% discount $(777) for a net price of $7001. York condenser, furnace, evaporator coil, and thermostat. 10 Yr Part, 10 Yr compressor, 1 Yr labor warranty. (Not covered under warranty- dispatch fees, Refrigerant lines, refrigerant, T-stat wire, drain lines, ductwork and insulation.) | NO MATCH | |||||||||
12 | 1/16/2019 | 13846 - Benny, Donna | Benny | Rewire air handler and thermostat $182 | NO MATCH | |||||||||
13 | 1/18/2019 | 13840 - Ender, Bett | Enderle | Replace Reversing Valve Solenoid (Warranty) $214 -Order Part | NO MATCH | |||||||||
14 | 1/23/2019 | 13880 - Laba, Dave | Laba | Replace Hot Surface Ignitor $227 ($193) (have to order part and return) | RECONCILED | 1/24/2019 | 13940 - Laba, Dave | Laba | Performed recommend work on-Ignitor | |||||
15 | 1/23/2019 | 13877 - Moss, Ren 2925 | Moss | Estimate to replace ductwork. Will sanitize ductwork, seal connections, replace registers, clean furnace and inspect system $1195. Customer will call us when the house is ready for us to do the job. | RECONCILED | 12/19/2018 | 13774 - Moss, Ren 2925 | Moss | Performed recommend work on Ductwork | |||||
16 | 1/24/2019 | 13882 - More, Michell | More | Replace inducer draft motor $566 ($481) Customer will not replace selling | NO MATCH | |||||||||
Sheet1 |
I've added the following code, but I', getting a run time error
[<code>Sub CompareDates() </code><code> </code><code>If Sheet1.Range("A1") > Sheet2.Range("A1") Then
Run "MatchColumns"
End If
End Sub]
Any help would greatly be appreciated by this really novice VBA/Excel user!
Thanks in advance
</code>[/FONT]<strike></strike>