Results 1 to 2 of 2

Thread: ComboBox & VBA

  1. #1
    Join Date
    Oct 2004
    Posts
    19

    Unanswered: ComboBox & VBA

    Hi, is it possible to do the following?

    I have 20 Comboboxes cboDat1.....cboDat20.
    I want to build in to a loop to cocantenate the Combobox name and assign Values such as below. Any ideas on the syntax?

    For X = 1 to 20

    "cboDat" & X & ".Value" = Var(X)

    Next

    Thanks up front..... Nick

  2. #2
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    ?? something like
    me.controls.item("cboDat" & cstr(X)).value = X

    izy
    currently using SS 2008R2

Posting Permissions

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