Searching through Table as a ListObject but not getting Header Row?
As a preface to this, I'm fairly novice in VBA only a few months in and I'm working through making a custom userform for email drafting etc. On the userform there is a combo box I fill from a table in a sheet and originally just had it scan through like so: Private Sub UserForm_Initialize() ' Wrote the function "GetTable" to get the table as a list object Set tblTo = GetTable(Tbl_To) Set tblTemplates = GetTable(Tbl_Templates) Dim rng As Range For Each rng In tblTemplates.ListColumns(1).Range ' combo box name With cmboTemplates .AddItem rng.Value End With Next End Sub And I realized Referencing
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.