View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
tolgag[_49_] tolgag[_49_] is offline
external usenet poster
 
Posts: 1
Default Simple Code Required

Hi georgk

Don't put numbers in place of i.
Just paste the code to the Initialize event of your user form

Dim i as integer
For i = 3 to 200
Me.ComboBox1.AddItem Worksheets("Name of the Worksheet").Cells(i,1)
Next

CommandButton1_Click is the correct one, paste the code for Button 1 in
this event.

For Command2 paste the following code again to its click event :
Unhide Me


---
Message posted from http://www.ExcelForum.com/