Krist Cheung
New Member
- Joined
- Jan 8, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Dear all Excel Experts,
How are you and hope that you guys can help me on this.
I am trying to write a Macro to do the following.
in Sheet 1 - I have today's date (cell B2).
Then, I would like to create a "Macro Click Button", which will then search the "Date Column" in a report that I have in "Sheet 2".
Macro will then compare today's date and the Date Column in "Sheet 2".
If the Date in "Date Column" in "Sheet 2" is greater than 7 days from today's date, then, copy Column A to Column F, and paste from "Sheet 2" to "Sheet 1".
If the Date in "Date Column" in "Sheet 2" is shorter than 7 days from today's date, then do NOT copy.
does it make sense?
It is much appreciated if someone can help me on this macro.
Kind regards,
Krist
How are you and hope that you guys can help me on this.
I am trying to write a Macro to do the following.
in Sheet 1 - I have today's date (cell B2).
Then, I would like to create a "Macro Click Button", which will then search the "Date Column" in a report that I have in "Sheet 2".
Macro will then compare today's date and the Date Column in "Sheet 2".
If the Date in "Date Column" in "Sheet 2" is greater than 7 days from today's date, then, copy Column A to Column F, and paste from "Sheet 2" to "Sheet 1".
If the Date in "Date Column" in "Sheet 2" is shorter than 7 days from today's date, then do NOT copy.
does it make sense?
It is much appreciated if someone can help me on this macro.
Kind regards,
Krist