is it possible to replace the unknown bit in the code so it displays that range in the combo box? any help please![]()
COCKS = Worksheets("SET").Range("B65336").End(xlUp).Row unknown = Worksheets("SET").Range("B2:B" & COCKS)
is it possible to replace the unknown bit in the code so it displays that range in the combo box? any help please![]()
COCKS = Worksheets("SET").Range("B65336").End(xlUp).Row unknown = Worksheets("SET").Range("B2:B" & COCKS)
![]()
Private Sub userform_initialize() Dim MyCell As Range Dim COCKS As Integer COCKS = Worksheets("SET").Range("B65336").End(xlUp).Row For Each MyCell In Worksheets("SET").Range("B2:B" & COCKS) Me.ComboBox1.AddItem (MyCell) Next MyCell End Sub
Not all forums are the same - seek and you shall find
carlton123,
Please read forum rules and the message to cross posters below
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
thanks for that works a treat. sorry for cross posting got mixed up
I Have modified it slightly but when i use exact same code for the hens i end up with a blank at the bottom i don't know where i have gone wrong. please see attached
sorry guys worked it out depends which item i added last a **** or a hen
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks