JTL9161
Well-known Member
- Joined
- Aug 29, 2012
- Messages
- 516
- Office Version
- 365
- Platform
- Windows
I have a spreadsheet where the data in column "D" today's date -1 (yesterday) and column 'J" has dates 1/1/19, 2/1/19, 3/1/19..etc.
I need to add to the bottom of my current macro something that finds the first cell with yesterday's date in column "D" and with 1/1/19 in column "J" and select the ROWS down to last cell with 1/1/19 or the cell above the cell that has 2/1/19 in it. Below is what I am looking for. The (entire) rows in red selected.
<colgroup><col style="mso-width-source:userset;mso-width-alt:3657;width:75pt" width="100"> <col style="mso-width-source:userset;mso-width-alt:3364;width:69pt" width="92"> <col style="mso-width-source:userset;mso-width-alt:3876;width:80pt" width="106"> <col style="mso-width-source:userset;mso-width-alt:2304;width:47pt" width="63"> <col style="mso-width-source:userset;mso-width-alt:3913;width:80pt" width="107"> <col style="mso-width-source:userset;mso-width-alt:2779;width:57pt" width="76"> <col style="mso-width-source:userset;mso-width-alt:4059;width:83pt" width="111"> <col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> </colgroup><tbody>
</tbody>
Hope my explaination is to confusing.
Thank you,
James
I need to add to the bottom of my current macro something that finds the first cell with yesterday's date in column "D" and with 1/1/19 in column "J" and select the ROWS down to last cell with 1/1/19 or the cell above the cell that has 2/1/19 in it. Below is what I am looking for. The (entire) rows in red selected.
XXXXX | 2/4/2019 | 2/5/2019 | Future | 1 | 1 | VA | 3/1/2019 |
2/4/2019 | 2/5/2019 | Future | 1 | 1 | PA | 3/1/2019 | |
XXXXX | 2/4/2019 | 2/5/2019 | Future | 1 | 1 | FL | 3/1/2019 |
2/5/2019 | Retro | PA | 1/1/2019 | ||||
XXXXX | 2/5/2019 | Retro | IL | 1/1/2019 | |||
XXXXX | 2/5/2019 | Retro | FL | 1/1/2019 | |||
XXXXX | 2/5/2019 | Retro | IL | 1/1/2019 | |||
XXXXX | 2/5/2019 | Retro | IL | 1/1/2019 | |||
XXXXX | 2/5/2019 | Retro | IL | 1/1/2019 | |||
XXXXX | 2/5/2019 | Retro | IL | 1/1/2019 | |||
XXXXXXXXXX | 2/5/2019 | Retro | MO | 2/1/2019 | |||
XXXXXXXXX | 2/5/2019 | Retro | CT | 2/1/2019 |
<colgroup><col style="mso-width-source:userset;mso-width-alt:3657;width:75pt" width="100"> <col style="mso-width-source:userset;mso-width-alt:3364;width:69pt" width="92"> <col style="mso-width-source:userset;mso-width-alt:3876;width:80pt" width="106"> <col style="mso-width-source:userset;mso-width-alt:2304;width:47pt" width="63"> <col style="mso-width-source:userset;mso-width-alt:3913;width:80pt" width="107"> <col style="mso-width-source:userset;mso-width-alt:2779;width:57pt" width="76"> <col style="mso-width-source:userset;mso-width-alt:4059;width:83pt" width="111"> <col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> </colgroup><tbody>
</tbody>
Hope my explaination is to confusing.
Thank you,
James