Good morning,
I would like to ask you how to loop copy a bulk data values in rows.
In my case there is a tens tables, where I have to input data. According to Excel formulas I can copy it using Paste Formulas option.
However in VBA, when I use a code below it seems to be hefty:
Sub sum_month()
Sheets("13").Activate
Range("EG822").Formula = "=SUM(EG12+EG282+EG552)" '-4
Range("EG822").Copy
Range("EG822:FT846").PasteSpecial xlPasteFormulas
Range("EG822:FT846").Copy
Range("FY822:HL846").PasteSpecial xlPasteFormulas
Range("HR822:JE846").PasteSpecial xlPasteFormulas
Range("EG852").Formula = "=SUM(EG42+EG312+EG582)" '-3
Range("EG852").Copy
Range("EG852:FT876").PasteSpecial xlPasteFormulas
Range("EG852:FT876").Copy
Range("FY852:HL876").PasteSpecial xlPasteFormulas
Range("HR852:JE876").PasteSpecial xlPasteFormulas
Range("EG882").Formula = "=SUM(EG72+EG342+EG612)" '-2
Range("EG882").Copy
Range("EG882:FT906").PasteSpecial xlPasteFormulas
Range("EG882:FT906").Copy
Range("FY882:HL906").PasteSpecial xlPasteFormulas
Range("HR882:JE906").PasteSpecial xlPasteFormulas
End Sub
Basically I have to make to copy in step 30 within the same row (the issue refers to many columns as per code above).
Is anyone clued up how to deal with it?
Thanks,