Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi, I have some code that I am experimenting with in excel:
Private Sub ComboBox1_Change() Select Case ComboBox1.Text Case "Dogs" MsgBox "Dogs" Case "Cats" MsgBox "Cat" Case "Mice" MsgBox "Mice" Case Else End Select End Sub Private Sub Worksheet_Activate() ComboBox1.Clear ComboBox1.AddItem "Dogs" ComboBox1.AddItem "Cats" ComboBox1.AddItem "Mice" ComboBox1.Text = ComboBox1.List(0) End Sub When I link the output to a cell, it returns the word value, how can I get it to return a number from 1-3, instead of the word values? Thanks! |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mail Merge Question with Excel | Microsoft Word Help | |||
ComboBox Help | Microsoft Word Help | |||
Another mailmerge from Excel question | Mailmerge | |||
combobox | Microsoft Word Help | |||
merge with excel question | Mailmerge |