Greetings all,
I am running the following macro to insert a new line with formulas under the header row. The sheet has about 4500 rows of data and 63 columns and is taking 15 seconds to run which seems to me to be a very long time. I added the screen updating, and calculation to see if I could speed it up by turning everything off until it had done what it was supposed to do but that didn't help.
sub addrow()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Cells(6, 1).Resize(1, 63).Copy
Cells(7, 1).Insert shift:=xlDown
Cells(6, 1).Resize(1, 63).SpecialCells(xlCellTypeConstants).ClearContents
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
end sub
I would appreciate any suggestions as to how to speed this up.
Bookmarks