combo box

  • Thread starter Michael J. Malinsky
  • Start date
M

Michael J. Malinsky

You could have a macro that called other macros based on the
ComboBox.ListIndex property. Something

Private Sub ComboBox1_Change()
SelectCase ComboBox1.ListIndex
Case0
Name1
Case1
Name1
Case2
Name3
End Select
End Sub

Then create separate Subs called Name1, Name2, etc.

HTH
--
Michael J. Malinsky
Pittsburgh, PA

"I was gratified to be able to answer promptly,
and I did. I said I didn't know." -- Mark Twain
 
Z

Zdenka

Hi,
I have a combo box with, for example, four names. Is it possible to assign a
macro to each name. ( four names - four different macros). I tried, and I
can assign only one macro which can be run from all names.
 
Z

Zdenka

Thanks Michael!!!

Michael J. Malinsky said:
You could have a macro that called other macros based on the
ComboBox.ListIndex property. Something

Private Sub ComboBox1_Change()
SelectCase ComboBox1.ListIndex
Case0
Name1
Case1
Name1
Case2
Name3
End Select
End Sub

Then create separate Subs called Name1, Name2, etc.

HTH
--
Michael J. Malinsky
Pittsburgh, PA

"I was gratified to be able to answer promptly,
and I did. I said I didn't know." -- Mark Twain

assign
 
Z

Zdenka

Thanks Michael!!!
Michael J. Malinsky said:
You could have a macro that called other macros based on the
ComboBox.ListIndex property. Something

Private Sub ComboBox1_Change()
SelectCase ComboBox1.ListIndex
Case0
Name1
Case1
Name1
Case2
Name3
End Select
End Sub

Then create separate Subs called Name1, Name2, etc.

HTH
--
Michael J. Malinsky
Pittsburgh, PA

"I was gratified to be able to answer promptly,
and I did. I said I didn't know." -- Mark Twain

assign
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top