View Single Post
 
Old 06-07-2012, 07:05 AM
tinfanide tinfanide is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Quote:
Originally Posted by Colin Legg View Post
Okay, this will give you the index of the column within the table itself:
Code:
Debug.Print Sheet1.ListObjects("oTable").ListColumns("Header1").Index
This code will give you the column number within the worksheet:
Code:
Debug.Print Sheet1.ListObjects("oTable").ListColumns("Header1").Range.Column
Yes, thanks for telling me the difference between .Index and .Range.Column.
Reply With Quote