XLA routines: EE_TableHeadingCol
EE_TableHeadingCol is a function that returns the column of a heading... if it doesn't find the heading, it returns 0
Function EE_TableHeadingCol(strFieldHeader As String, Optional rngTable As Range) As Long '-Takes a heading name, EE_Table range '- returns the heading col as a long 'http://excelexperts.com/xla-routines-eeTableHeadingCol for updates on this function Set rngTable = EE_TableDefault(rngTable) On Error Resume Next EE_TableHeadingCol = Application.WorksheetFunction.Match(strFieldHeader, rngTable.Rows(1), 0) If Err.Number <> 0 Then EE_TableHeadingCol = 0 End If Err.Clear: On Error GoTo 0: On Error GoTo -1 End Function
»
- Nick's blog
- Login or register to post comments
- 2550 reads
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago