VBA Code to AutoFill a column based on date

Copper Contributor

Hi, I have looked around the net, but I can't find a clear answer for the following.

 

I would like a VBA code that can fill up the cells, and continues filling not start from the begging so it is  based on the current date for example if the current date is 25th Nov then the data should be dragged till 24th Nov and from the next day it should only fill for 25th and if i skipped 3 days it should fill up to minus one day of the current date on.

In the following steps :

1- from Row 4 untill Row 128, these data will be copied till one day before the current date. keep in mind in adding other data so if there is data added in between the cells will not affect the VBA if it does please notify in the comment

 

please advice 

2- From Row 129 untill Row 1181, these data will be copied and changed to Copy/Paste.Values - also you will notice that the formula will not calculate the cells that dont have a Tag numbers in column A only selected (example is cell 130) till one day before the current date. keep in mind in adding other data so if there is data added in between the cells will not affect the VBA if it does please notify in the comment

0 Replies