I need the column number for two Columns, based on their names.
The names of the Columns (in that case) are:
Date (Start)
and Date (End)
I wasted time until:
Var The_Header() As String
// a. Get the Header Strings
The_Header = Split(LB.HeaderAt(ListBox.AllColumns),Chr(9))
// b. Get the Position of Date (Start)
Date_Start_Idx = The_Header.IndexOf("Date (Start)")
// b. Get the Position of Date (Start)
Date_End_Idx = The_Header.IndexOf("Date (End)")
In the code above, LB stands for the ListBox reference.
Now, I can work with the dates stored in these two Columns.
4 posts - 4 participants