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 8692697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:22:07+00:00 2026-06-13T00:22:07+00:00

I have a drop down field in VBA called cbo_deptCode . I would like

  • 0

I have a drop down field in VBA called cbo_deptCode. I would like another set of fields called cbo_moduleCode and cbo_moduleName to be cleared of any current entry each time the user makes a selection from the drop down cbo_deptCode. The combo boxes are form controls. How can I go about achieving this?

  • 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-13T00:22:08+00:00Added an answer on June 13, 2026 at 12:22 am

    Assign a macro to cbo_deptCode.

    In the macro have code like the following:

    Sub cbo_deptCode_Change()
        'Update selected index for combo boxes to 0 I.E. no selection
        ActiveSheet.Shapes("cbo_moduleCode").OLEFormat.Object.Value = 0
        ActiveSheet.Shapes("cbo_moduleName").OLEFormat.Object.Value = 0
    End Sub
    

    If cbo_moduleCode and cbo_moduleName are not on the same sheet as cbo_deptCode, you’ll need to specify the sheet instead of calling the ActiveSheet. Also, this will fail if those aren’t the actual control names.

    EDIT:
    If you are actually using Active-X controls (though you said you were using form controls), the format is simpler:
    Sheet.[controlname].value = "" I.E ActiveSheet.cbo_moduleCode.Value = ""
    Or the more convoluted method (not recommended) that involves Shapes:

    ActiveSheet.Shapes("cbo_moduleCode").OLEFormat.Object.Object.Value = ""

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drop down select list in a VBA form I would like
I have a multiselect drop-down field called holds. When nothing is selected, the holds
I have a drop down box that I would like to lock after an
I have capture change event on drop down select. This drop down field is
I have a drop down box and some text input fields below it. Based
I have a drop down html field holding a ton of data ( http://screencast.com/t/YzU4N2Y1ZGI
I have a drop-down list box and two text fields of id values namely
I have a drop down. whenever user changes it to a particular field. I
I have a simple interface set up using Tkinter.I have a drop down box,
I have one drop down list in my page, which contains two options. What

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.