Public Function GetColIndexFromColNameOrIndex(ColNameOrIntIndex As Variant, Optional SuppressError As Boolean = True, Optional ColInterpretation As xf_ColInterpretationEnum = xf_ColInterpretation_FirstAsIndex) As Integer
Get a column index from a column index or name
- if the passed value is an integer, it is treated as a column index
- if the passed value is a string and ColInterpretation=xf_ColInterpretation_FirstAsName, it is treated as a column name always (even if it is numeric)
- if the passed value is a string and ColInterpretation=xf_ColInterpretation_FirstAsIndex , the value is treated as a column index if the string can be converted to an integer, or as a column name otherwise
xf_DataList
xf_DataList