ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto Line insert (https://www.excelbanter.com/excel-programming/293529-auto-line-insert.html)

benosc

Auto Line insert
 
Hi Frank

Thanks for the suggestion but I realy need to put the
total at the bottom so if you could help I would be
grateful.

Regards

Bob Phillips[_6_]

Auto Line insert
 

iLastRow = Cells(Rows.Count,"A").End(xlUp).Row
Cells(iLastRow+2,"A").FormulaR1C1= "=SUM(R1C:R[-2]C)"

change the column "A" to suit.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"benosc" wrote in message
...
Hi Frank

Thanks for the suggestion but I realy need to put the
total at the bottom so if you could help I would be
grateful.

Regards





All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com