locked
Combo Box and Index number help RRS feed

  • Question

  • I need assistance getting a button when clicked to display the name of the last object in the combo box in the results text box. How can I go about getting the last index of the combo box to display in the text box?
    Sunday, September 28, 2014 2:53 PM

Answers

  • I need assistance getting a button when clicked to display the name of the last object in the combo box in the results text box. How can I go about getting the last index of the combo box to display in the text box?

    You can get what you want by using the .Items collection of the ComboBox:

    ComboBox1.Items(ComboBox1.Items.Count-1)

    That's the last item in the ComboBox.


    Still lost in code, just at a little higher level.

    :-)

    • Marked as answer by Cirrix Sunday, September 28, 2014 3:01 PM
    Sunday, September 28, 2014 2:59 PM

All replies

  • I need assistance getting a button when clicked to display the name of the last object in the combo box in the results text box. How can I go about getting the last index of the combo box to display in the text box?

    You can get what you want by using the .Items collection of the ComboBox:

    ComboBox1.Items(ComboBox1.Items.Count-1)

    That's the last item in the ComboBox.


    Still lost in code, just at a little higher level.

    :-)

    • Marked as answer by Cirrix Sunday, September 28, 2014 3:01 PM
    Sunday, September 28, 2014 2:59 PM
  • Thanks!
    Sunday, September 28, 2014 3:01 PM
  • Thanks!

    :)

    Still lost in code, just at a little higher level.

    :-)

    Sunday, September 28, 2014 3:02 PM