Hello,
I work with a table, called Table1 for example.
For example
Title1 Title2 Title3
val1 val2 val3
The activecell is on val3, and in VBA, I want to take over the value of the first column : val1
I'm able to do it with :
lRow = ActiveCell.Row - ActiveSheet.ListObjects("Table1").DataBodyRange.Cells(1, 1).Row + 1
Activesheet.ListObjects("Table1").listcolumns("Title1").databodyrange.cells(lRow)
OR
lRow = ActiveCell.Row - ActiveSheet.ListObjects("Table1").DataBodyRange.Cells(1, 1).Row + 1
Range("Table1[Title1]").Cells(lRow)
But it is complex.
Is there any way to use :
Range("Table1[@[Title1]]") like in formula ??
Thank you...
I work with a table, called Table1 for example.
For example
Title1 Title2 Title3
val1 val2 val3
The activecell is on val3, and in VBA, I want to take over the value of the first column : val1
I'm able to do it with :
lRow = ActiveCell.Row - ActiveSheet.ListObjects("Table1").DataBodyRange.Cells(1, 1).Row + 1
Activesheet.ListObjects("Table1").listcolumns("Title1").databodyrange.cells(lRow)
OR
lRow = ActiveCell.Row - ActiveSheet.ListObjects("Table1").DataBodyRange.Cells(1, 1).Row + 1
Range("Table1[Title1]").Cells(lRow)
But it is complex.
Is there any way to use :
Range("Table1[@[Title1]]") like in formula ??
Thank you...