GopherUK
Active Member
- Joined
- Jan 23, 2009
- Messages
- 473
Hi,
Is it possible to create a structured reference in VBA that will point to the intersection of the current (active) row and a given column?
For example, in plain worksheet reference, it would be: =
=TableName[[#This Row],[COLUMNNAMEHERE]]
VBA doesnt seem to like the equivalent, which I believe would be: -
-----------------
Dim oSh As Worksheet
oSh.Range("TableName[[#This Row],[COLUMNNAMEHERE]]")
-----------------
If it will not accept this, is there any way to find out the row number relative to the table is? I could probably use a workaround from there.
Thanks.
Is it possible to create a structured reference in VBA that will point to the intersection of the current (active) row and a given column?
For example, in plain worksheet reference, it would be: =
=TableName[[#This Row],[COLUMNNAMEHERE]]
VBA doesnt seem to like the equivalent, which I believe would be: -
-----------------
Dim oSh As Worksheet
oSh.Range("TableName[[#This Row],[COLUMNNAMEHERE]]")
-----------------
If it will not accept this, is there any way to find out the row number relative to the table is? I could probably use a workaround from there.
Thanks.