View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default combo box - VBA form

Hi,

One way

Private Sub UserForm_Initialize()
For x = 1 To 6
ComboBox1.AddItem Worksheets("Sheet1").Cells(x, 1).Value
Next
End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Roy Gudgeon" wrote:

HI

I have created a form via VBA, I have included a combo box which I want to
point at a specific list of entries.

I can do this on a normal worksheet using data validation, how do I do it in
VBA design mode
--
thanks
Roy