Another question please (Not sure if I should post all questions in a single thread, so as to not unnecessarily increase thread count, or in separate threads based on exact topic)
Note: ShtName is a public variable
VBA Code:
Dim dbSheet As Worksheet
Dim dbTable As ListObject
Set dbSheet = ThisWorkbook.Sheets("Form")
Set dbTable = ThisWorkbook.Sheets(ShtName).ListObjects(ShtName)
ActiveSheet.lstPrev.RowSource = dbTable.DataBodyRange.Address(External:=True)
I am trying to get the content of a formatted table into an ActiveX list box
lstPrev. I am getting error 438 "Object doesn't support this property or method".
What am I doing wrong?