Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
is there any way when i insert a row to have it join a range? I want to
define one row as a range and then any rows i insert on top of it to be added to that range automatically. Nay ideas? Thanks for any help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use a defined name as the definition of the range
Insert = Name = Define Name: List RefersTo: =Offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),10) change 10 to reflect the number of columns. Then in you code you can use set rng = Range("list") or as advised before set rng = Range("A1").CurrentRegion would do the same. -- Regards, Tom Ogilvy wrote in message oups.com... is there any way when i insert a row to have it join a range? I want to define one row as a range and then any rows i insert on top of it to be added to that range automatically. Nay ideas? Thanks for any help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
This is a non VB, low tech solution and it does not not work, if the named range includes Row 1. Include the row above what you want in the named range and when you insert a row, it will automatically be included. Example, desired named range is B3-B5, the relavant range, but when you establish the range make it B2-B5. When you insert a row at B3, it will be included in the existing named range. " wrote: is there any way when i insert a row to have it join a range? I want to define one row as a range and then any rows i insert on top of it to be added to that range automatically. Nay ideas? Thanks for any help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto set data ranges | Charts and Charting in Excel | |||
Auto Number the Rows of Auto Filter Result | Excel Discussion (Misc queries) | |||
How to create ranges with auto filter | Excel Programming | |||
VBA Auto selecting and calculating ranges | Excel Programming |