Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here are some examples
Sub name_ranges3() ' dumps all named ranges Dim nm As Name For Each nm In ThisWorkbook.Names Debug.Print Range(nm).Parent.Name ' will give the sheet name of the range Debug.Print nm.Parent.Name ' will give the workbook name Debug.Print nm.Name ' will give the range name Next nm End Sub -- Gary "Don Wiss" wrote in message ... I was looking for a property that returned what sheet a range was on. I didn't find it. So I wrote a simple function that plucked the sheetname from the range.name. But is there a property that I didn't find? Don <www.donwiss.com (e-mail link at home page bottom). |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding the corresponding value in a range? | Excel Worksheet Functions | |||
Finding Info from sheet 1 and removing only those rows from sheet | Excel Discussion (Misc queries) | |||
Finding a value associated with a range | Excel Worksheet Functions | |||
Finding a Range Name | Excel Programming | |||
Finding All Range Names on a given sheet | Excel Programming |