ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Inserting a row below (https://www.excelbanter.com/excel-discussion-misc-queries/66886-inserting-row-below.html)

Belgarth

Inserting a row below
 
I want to be able to let people insert a new row below an existing row, and
in doing so the formula from above also gets copied but not the data in other
cells, either by using a macro or a command button.

Ideally I would just like them to be able to insert a row and the formula
gets copied as well.


Dave Peterson

Inserting a row below
 
David McRitchie has a nice macro that asks how many rows should be inserted and
even copies the formulas down to those new rows.

http://www.mvps.org/dmcritchie/excel/insrtrow.htm
look for: InsertRowsAndFillFormulas

Belgarth wrote:

I want to be able to let people insert a new row below an existing row, and
in doing so the formula from above also gets copied but not the data in other
cells, either by using a macro or a command button.

Ideally I would just like them to be able to insert a row and the formula
gets copied as well.


--

Dave Peterson


All times are GMT +1. The time now is 02:34 PM.

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