Collect data based on due date using VBA

Icylandar

New Member
Joined
Mar 5, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi, my name is Michael.

I need your help and guidance for solving the problems I have encountered.

Suppose, I have a data from book1 attach on a picture in this forum.
There are issued date, distributor, order no, and shipment.

What I have to do is: requesting the PC No to the distributor when the date shows: the issued date + 14 days --> Let's called it by the "DUE DATE"
For example, Issued date = 8th January 2022, + 14 days, then the DUE DATE is is 22th January 2022 --> I have to request the PC no to the distributor.
And so on for another issued date and due date.
The problem is, there will be a lot issued date data in the real simulation.

For solving that problem, I have an idea to make a click button called "Request PC No". What I want is when I click that button on book1, then the excel transfers the data automatically to the book2 based on the due date using the VBA.

However, I don't really familiar with the VBA code.

Can anyone help me?

Thank you.

Best regards,
Michael.
 

Attachments

  • Screenshot_3.png
    Screenshot_3.png
    21 KB · Views: 12

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top