2

I have a table with columns that have headers. I'd like to be able to convert the structured reference [Column 2] to the range B1:B1000 and Table1[[#Data],[Column2]] to the range B2:B1000.

edit for context:

This is in the formula editor so the structured references refer to a table in the current worksheet.

nimish
  • 4,755
  • 3
  • 24
  • 34

2 Answers2

4

This will give you the address:

Activesheet.Range("Table1[[#Data],[Column2]]").Address()

This would give you a reference to the range itself

Dim rng As Range
Set rng = Activesheet.Range("Table1[[#Data],[Column2]]")
Tim Williams
  • 154,628
  • 8
  • 97
  • 125
1

In the Table options you can select the option Convert to Range which will change structured references in formulas to range references, you can then choose Insert Table to reinstate the table. To simplify formulas you could use find & replace e.g. Sheet1! and $ with blank.

lori_m
  • 5,487
  • 1
  • 18
  • 29