Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to dynamically define a range name based on the current monthly data
in a specified sheet. I would need to use the same range name multiple times. I've tried the following (amoung others), but it doesn't seem to work. Does anyone have any suggestions? Any help would be appreciated. Sub Macro1() ' Sheets("DataList").Select Range("A1:H1").Select Range(Selection, Selection.End(xlDown)).Select Dim sAddress As String sAddress = ActiveWindow.RangeSelection.Address ActiveWorkbook.Names.Add Name:="rngTest", RefersToR1C1:="=ActiveWindow.RangeSelection.Addres s" End Sub Thanks in advance. Best Regards, Wayne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Define Name range | Excel Discussion (Misc queries) | |||
Define a range | Excel Discussion (Misc queries) | |||
Define a range based on another named range | Excel Worksheet Functions | |||
Define Certain Exact Range | Excel Programming | |||
Define a Range depending on where the EOF is | Excel Programming |