Hello All,
I have an application where on the user form a combo box exist and allows a user to select which field they would like to search by. The combo Box is populate with a list of choices using the following code:
Private Sub UserForm_Initialize()
Me.cboxSearchBy.List = WorksheetFunction.Transpose(Sheet7.Range("B1:O1"))
End Sub
Using this produces 15 column Headings that can be used as the search Criteria when really only three logical Search criteria exist. That said, I am trying to alter the above code to only allow the selection of Cells B1, C1 an O1 only. I have searched and not been able to modify the code to produce this result
Can anyone provide me guidance on How to modify the code above to only use cells B1, C1 & O1 and not the entire range of B1:O1?
Thanks for any help,
Larry
Bookmarks