antialias401
Active Member
- Joined
- Aug 13, 2013
- Messages
- 254
Hi Everyone,
I've searched to no avail...
I need VBA to return the Active Cell's List Column in the Active Table.
I can specify an address no problem...
ActiveSheet.ListObjects("Table_x").ListColumns(3,15).Range.Value
But I am using a FIND routine, and I can find the cell, but I need to offset to different columns for data entry.
So how do I get the Table's Column of the ActiveCell?
I can use ActiveCell.Column, but that is the sheet column, not the List Column.
Any ideas would be greatly appreciated!
(Edit: As a workaround, I'm having to Set Ranges, then subtract the columns from each other:
Rng1 .Offset.(0, Rng1.Column - Rng2.Column).Value = Range("A1").Value)
I've searched to no avail...
I need VBA to return the Active Cell's List Column in the Active Table.
I can specify an address no problem...
ActiveSheet.ListObjects("Table_x").ListColumns(3,15).Range.Value
But I am using a FIND routine, and I can find the cell, but I need to offset to different columns for data entry.
So how do I get the Table's Column of the ActiveCell?
I can use ActiveCell.Column, but that is the sheet column, not the List Column.
Any ideas would be greatly appreciated!
(Edit: As a workaround, I'm having to Set Ranges, then subtract the columns from each other:
Rng1 .Offset.(0, Rng1.Column - Rng2.Column).Value = Range("A1").Value)
Last edited: