Row Insert/Maintain Named Range

Neil54

New Member
Joined
Jan 24, 2005
Messages
17
Two-part question here:

How can I insert a row at the top of a list such that the named range doesn't shift down by one row. Effectively, I have a set of data from A3:J20 and a named range beginning in A3. When I insert a new row on top of line 3, the named range obviously shifts down by one row, and the array formula I have which references the named range no longer evaluates the contents in A3. Is there a way to resolve this? I know I can insert a row in row 4, copy the contents in cell 3 down to 4, and enter the new data into row 3, but this method is ineffecient.

Also, it would be greatly appreciated if someone could provide a script that would allow for a message box to appear that prompts the user to provide the number of new rows to be added. So, if I wanted to add 10 new rows--only between columns A and J (shift cells down)--how can this be accomplished?

Many thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
For the first part, try defining the range as follows...

=INDEX(Sheet1!$A:$A,3):INDEX(Sheet1!$J:$J,20)

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,602
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top