Results 1 to 7 of 7

Add same list in multiple comboboxes

Threaded View

aman1234 Add same list in multiple... 06-07-2011, 03:43 AM
snb Re: Add same list in multiple... 06-07-2011, 03:51 AM
mohd9876 Re: Add same list in multiple... 06-07-2011, 03:52 AM
pike Re: Add same list in multiple... 06-07-2011, 04:00 AM
royUK Re: Add same list in multiple... 06-07-2011, 04:07 AM
aman1234 Re: Add same list in multiple... 06-07-2011, 04:27 AM
pike Re: Add same list in multiple... 06-07-2011, 04:41 AM
  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Add same list in multiple comboboxes

    Hi guys
    I have written the following code but its giving me runtime error "Object required".

    ANy help would be much appreciated.

    Private Sub UserForm_Initialize()
    loadcombos (ComboBox2)
    loadcombos (ComboBox3)
    loadcombos (ComboBox4)
    loadcombos (ComboBox5)
       
    End Sub
    
    Public Sub loadcombos(a As ComboBox)
    a.AddItem "Late post"
    a.AddItem "High volume"
    a.AddItem "Work flow"
    a.AddItem "Staffing issue"
    a.AddItem "Support elsewhere"
    End Sub
    Last edited by aman1234; 06-07-2011 at 06:53 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1