rahildhody
Board Regular
- Joined
- Aug 4, 2016
- Messages
- 55
- Office Version
- 365
- Platform
- Windows
Hi,
Im trying to copy the formula from one cell to another as the date of the actual month changes.
As the date changes to 31/5/24 in AD5, i want to copy the formula from Apr24 to May24 & do that for each of the 3 blocks shown.
It seems simple enough code to do for 5-10 of these blocks, but i have around 200 blocks going down the page. I thought of using a For loop with intersect wherever the cell = 2024P4, but because the sheet is so long (over 15,000 rows) it takes a really long time.
idea is to copy AG10277, paste in AH10277, then copy AG10286, paste in AH10286, then copy AG10295, paste in AG10295.
if there a neater code that can run quickly for over 15,000 rows & copy formula from Apr24 to May24 (in this example) using a VBA code?
Any help would be much appreciated.
Regards
Rahil
Im trying to copy the formula from one cell to another as the date of the actual month changes.
As the date changes to 31/5/24 in AD5, i want to copy the formula from Apr24 to May24 & do that for each of the 3 blocks shown.
It seems simple enough code to do for 5-10 of these blocks, but i have around 200 blocks going down the page. I thought of using a For loop with intersect wherever the cell = 2024P4, but because the sheet is so long (over 15,000 rows) it takes a really long time.
idea is to copy AG10277, paste in AH10277, then copy AG10286, paste in AH10286, then copy AG10295, paste in AG10295.
if there a neater code that can run quickly for over 15,000 rows & copy formula from Apr24 to May24 (in this example) using a VBA code?
Any help would be much appreciated.
Regards
Rahil