Thread: combobox
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default combobox

I would do it this way:

With ActiveSheet.ComboBox2
.Clear
.AddItem "Enter Quantity"
.ListIndex = 0
.Visible = True
.Activate
End With



"sunilpatel" wrote:

i have the following code.

ActiveSheet.ComboBox2.Clear
ActiveSheet.ComboBox2.AddItem "Enter Quantity"
ActiveSheet.ComboBox2.ListIndex = 0
ComboBox2.Visible = True

I would like the "Enter Quantity" to be highlighted, so a number can be
entered without using the mouse.

Thanks