Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8411123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:21:41+00:00 2026-06-10T00:21:41+00:00

I have two combo boxes in Sheet2 (not a UserForm), named Xchoose and Ychoose.

  • 0

I have two combo boxes in Sheet2 (not a UserForm), named Xchoose and Ychoose. I would like to populate them with values from cells in Sheet1 when the workbook is opened.

At this point, I am unable to even add a static string to the combo boxes. Here is my setup so far…

In ThisWorkbook, I have:

Sub Workbook_Open()
    Call Sheet2.Init_Lists
End Sub

In Sheet2 (Compare), I have:

Sub Init_Lists()
    MsgBox "Initializing..."
    Xchoose.AddItem "item 1"
    ' This subroutine will eventually add values from Sheet1.
End Sub

Sub Xchoose_Change()
    ' To do.
End Sub

Sub Ychoose_Change()
    ' To do.
End Sub

The “Initializing…” message box appears when the workbook is opened, indicating that Init_Lists works properly, but then the program breaks on the line

Xchoose.AddItem "item 1"

with the error “Object required.” I have tried putting the subroutines in a separate module, but I receive the same error.

Can somebody explain how I can add items to these combo boxes? Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:21:42+00:00Added an answer on June 10, 2026 at 12:21 am

    Try this (TRIED AND TESTED FOR ACTIVEX COMBO)

    Private Sub Workbook_Open()
        Sheet2.Xchoose.AddItem "item 1"
    End Sub
    

    OR

    Sub Init_Lists()
        MsgBox "Initializing..."
        Sheet2.Xchoose.AddItem "item 1"
        ' This subroutine will eventually add values from Sheet1.
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two combo boxes in wpf one of the combo boxes looks like
I have a page containing two combo boxes. I want to make them in
I have two combo boxes. Let's say the first one had values A, B,
I have a form that needs to use two combo boxes but the values
I have a form with two combo boxes and couple of buttons. One of
I have two combo boxes, one for 'order by' and the other 'direction' (ascending,
I have in a form two combo boxes that have the exact itemssource property.
I have two combo boxes in an html form that are going to be
I have cascading data-bound combo boxes, however, if the second of the two boxes
I have two combo boxes set to same store combo1 xtype: 'combo', store: client_store,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.