I have a function that i would like to make more general. But i can't get the last part of the function to work as input to the function.
how do i use tables as input to a funktion? I would like to break out the table name and use it as input so i can use the function in other contexts.
Function GetTotalHours("Tablename?" As ??, columnNumber As Integer) As Integer
For Each Row In [Tablename].Rows
getTotalHours = getTotalHours + DateTime.Hour(Row.Columns(columnNumber).Value)
Next
End Function
can i make this with a string some how?