Forum

Table Referencing G...
 
Notifications
Clear all

Table Referencing Given the Cell Address

3 Posts
2 Users
0 Reactions
81 Views
(@jstewart)
Posts: 216
Estimable Member
Topic starter
 

Given a cell address is there a way to find out what column it is in on the table?

For clarification: I have VBA looking for content in the cells on two table on a worksheet. Once there, I'll need to offset the reference but the content could be in either of two columns on either of the two tables. Once my macro has found my cell, is there a way to tell what column it displays in? I already figured out how to tell what table my cell is on.

 
Posted : 30/12/2021 7:00 pm
(@debaser)
Posts: 836
Member Moderator
 

You can work out the offset between the cell's Column property and the Listobject.Range.Column, which will tell you the listcolumn number. From there you can get whatever info you need. 😉

 
Posted : 31/12/2021 7:06 am
(@jstewart)
Posts: 216
Estimable Member
Topic starter
 

Thank you so much!

 
Posted : 31/12/2021 11:10 am
Share: