ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Range (https://www.excelbanter.com/excel-programming/350989-range.html)

Kjeldc

Range
 
ActiveWorkbook.Names.Add Name:="Members", RefersToR1C1:="=Lists!R3C5:R12C5"

I have this in "Workbook_Open". But How do I expand the area if new members
are added

Bob Phillips[_6_]

Range
 
I would take a different approach

With Worksheets("Lists")
LastRow = .Cells(Rows.Count,"C").End(xlup).row
Range("C3:C" & LastRow).Name = "Members"
End With

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Kjeldc" wrote in message
...
ActiveWorkbook.Names.Add Name:="Members",

RefersToR1C1:="=Lists!R3C5:R12C5"

I have this in "Workbook_Open". But How do I expand the area if new

members
are added




Kjeldc

Range
 
Excel-- lent :-)

"Bob Phillips" skrev:

I would take a different approach

With Worksheets("Lists")
LastRow = .Cells(Rows.Count,"C").End(xlup).row
Range("C3:C" & LastRow).Name = "Members"
End With

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Kjeldc" wrote in message
...
ActiveWorkbook.Names.Add Name:="Members",

RefersToR1C1:="=Lists!R3C5:R12C5"

I have this in "Workbook_Open". But How do I expand the area if new

members
are added






All times are GMT +1. The time now is 11:42 PM.

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