PIsabel
Board Regular
- Joined
- Feb 4, 2014
- Messages
- 126
- Office Version
- 365
- Platform
- Windows
Hello.
How can I speed up this code?
My file is from line 2 to line 30000
my macro inserts the formulas in line 2 and then copies and pastes from line 3 to 30000
"Range("B2:C2").Select" and Range("F2:AI2").Select have long formulas which makes the file very heavy. The macro itself is struggling
Most of the time I only have half a dozen lines to use.
What I need is a code that only runs up to the last cell in column E
Thanks
How can I speed up this code?
My file is from line 2 to line 30000
my macro inserts the formulas in line 2 and then copies and pastes from line 3 to 30000
"Range("B2:C2").Select" and Range("F2:AI2").Select have long formulas which makes the file very heavy. The macro itself is struggling
Most of the time I only have half a dozen lines to use.
What I need is a code that only runs up to the last cell in column E
Thanks
VBA Code:
'copy and paste formulas
Range("B2:C2").Select
Selection.Copy
Range("B3:C30000").Select
ActiveSheet.Paste
'copy and paste formulas
Range("F2:AI2").Select
Selection.Copy
Range("F3:AI30000").Select
ActiveSheet.Paste