Pregunta

If I have a formula named "top_row" which point to the cells "A1:A90" is there any way to read the definition of the cell? This is so I can have a sheet with configuration values that would be [formula1][value1] [formula2][value2]

There would be different sets of values and not all would have the same entries, hence wanting to list by name.

¿Fue útil?

Solución

you can just iterate through all the available named ranges in Current Workbook and use the values:

try this:

Range("A1") = "Name"
Range("B1") = "Reference"

With Range("A1:B1")
.Font.Bold = True
.Font.Underline = True
End With
intCount = 2

For Each namedRange In ThisWorkbook.Names

Range("A" & intCount).Value = namedRange.Name
Range("B" & intCount).Value = namedRange

intCount = intCount + 1
Next
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top