I am trying to assign am excel function to a VBA variable. I have tried a few different data types and none of them seem to work. I am trying to count the columns and rows in this table "tblAdsorpsionColumn" and I dont want to type out "Application.WorksheetFunction" every time I use an excel function in VBA. I know there other ways to do this but I want to use this way to learn how to use this functionality later. (what doesn't work: Worksheet,Double,String,Object)
Private Sub UserForm_Initialize()
Dim App As Object
Dim Table As Range
Set App = Application.WorksheetFunction
Set Table = ThisWorkbook.Worksheets("Sheet1").Range("tblAdsorpsionColumn")
lstTable.ColumnCount = App.Columns(Table)
End Sub