spreadsheet411
New Member
- Joined
- Feb 18, 2020
- Messages
- 2
- Office Version
- 2016
- 2013
- 2010
- Platform
- Windows
Hello all!
I have a form with various combo boxes that users can select. Currently I'm populating each combo box with every column header in my data set (not my data set is variable). Here's the code I'm using:
For i = 1 To Application.WorksheetFunction.CountA(sh.Range("1:1"))
Me.cbAmount.AddItem sh.Cells(1, i).Value
Next i
I want to be able to have specific combo boxes only include those headers where the column contains dates, and others where the column only contains values etc.
How can I best read an entire column to determine the type of data in that column?
Very interested to see what type of creative ideas this group has!
I have a form with various combo boxes that users can select. Currently I'm populating each combo box with every column header in my data set (not my data set is variable). Here's the code I'm using:
For i = 1 To Application.WorksheetFunction.CountA(sh.Range("1:1"))
Me.cbAmount.AddItem sh.Cells(1, i).Value
Next i
I want to be able to have specific combo boxes only include those headers where the column contains dates, and others where the column only contains values etc.
How can I best read an entire column to determine the type of data in that column?
Very interested to see what type of creative ideas this group has!