fabalshehhi
New Member
- Joined
- Dec 2, 2020
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
Hi, I have looked around the net, but I can't find a clear answer for the following. also a linked to excel is attached at the bottom
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
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
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
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
Last edited by a moderator: