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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,697
For the first part, try defining the range as follows...

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

Hope this helps!
 

Forum statistics

Threads
1,136,430
Messages
5,675,803
Members
419,586
Latest member
RoteichA

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
Top