Adding the same content to multiple combo boxes

From: keaven (kfreeman_at_nas.edi)
Date: 06/10/04


Date: Thu, 10 Jun 2004 11:35:27 -0700

Okay.. here's the deal, i have a user form in excel that
gathers information. In one section there is a series of
six combo boxes. What i have been trying to do is have
code in the UserForm_Initialize() sub that adds items to
the combo boxes. All six combo boxes need the same
information added to them.

what i would like to do is something like:
   for each X in (1,2,3,4,5,6)
      with Me.ComboBoxX
         .AddItem "a"
         .AddItem "b"
      end with
   next

trying to get it to go through all 6 boxes.. but this is
not working and i cant figure out how to get it to work
without reapeating the .AddItem list for each and every
box. is there a faster way to do it?

-keaven



Relevant Pages

  • Re: Print Screen key
    ... >> Okay, got a print screen key on my keyboard. ... When I get certain boxes that pop up in programs and there is no ... > Next step is to open Paint, Wordpad or any other program that accepts ...
    (microsoft.public.windowsxp.newusers)
  • Re: RMMGA CD banter
    ... if you're asking if I would do it the old way - with stacks of boxes ... >All 500 sets of CDIII were in MY living room for weeks. ... And that was okay with you? ... If you're proposing to do that, ...
    (rec.music.makers.guitar.acoustic)
  • Re: Sarsi cracks me up
    ... Yesterday we were thinking about going out today okay in the end we ... didn't because the weather has been bad today but yesterday...So I fed ... would give me time to do both boxes before they needed them (I ... The cats hate this...they've spent effort making sure the box smells ...
    (rec.pets.cats.anecdotes)
  • Re: More check box
    ... (remove nothere from email address if mailing direct) ... > Okay, i have inserted check boxes from the forms tool bar. ... > As I type information in a cell and the text "wraps" within the cell, ...
    (microsoft.public.excel.misc)
  • Re: Sarsi cracks me up
    ... Yesterday we were thinking about going out today okay in the end we ... didn't because the weather has been bad today but yesterday...So I fed ... would give me time to do both boxes before they needed them (I ... The cats hate this...they've spent effort making sure the box smells ...
    (rec.pets.cats.anecdotes)

Loading