Results 1 to 3 of 3

Thread: [Resolved]Quick Question regarding Combo boxes & Listboxes

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2006
    Posts
    18

    [Resolved]Quick Question regarding Combo boxes & Listboxes

    I know from my VB6 days that when I am populating combo boxes (or listboxes), I could assign the ItemData property to store typically the ID number associated with the text selection.

    In VBA, this ItemData is not available. How do I do this in VBA? I'm building this in excel if that makes a difference....

    example:

    VB Code:
    1. For iCounter = 0 To UBound(arrProvinceState, 2)
    2.             Me.cboProvState.AddItem arrProvinceState(1, iCounter)
    3.             Me.cboProvState.ItemData(cboProvState.NewIndex) = arrProvinceState(0, iCounter)
    4.         Next iCounter

    I'd really appreciate any help regarding this.

    Thanks in advance!
    Last edited by whiteGSR; Jul 18th, 2006 at 02:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width