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

  • Home
  • SEARCH
  • 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 8652907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:24:55+00:00 2026-06-12T14:24:55+00:00

dropDown on the ribbon: <dropDown id=dd01 onAction=dd01OnAction/> In VBA I need Sub dd01OnAction(control As

  • 0

dropDown on the ribbon:

<dropDown id="dd01"
onAction="dd01OnAction"/>

In VBA I need

Sub dd01OnAction(control As IRibbonControl, ID As String, index As Integer)
If dd01.Value = "Sky" Then MsgBox "323"
End Sub

How can I get the value of dropDown ?

  • 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-12T14:24:57+00:00Added an answer on June 12, 2026 at 2:24 pm

    I don’t think you can get the value directly.

    I usually load the dropDowns from a collection object and make sure that the ID in the collection matches the index in the dropDown. That way I can get all relevant values from the collection based on the index or ID parameter in the callback. Could you use something similar as a workaraound?

    does that mean that after each change in Collection, I need to Invalidate ribbon ? Mamma Mia, it will be almost after each click

    Yes, however, by using ribbonobject.InvalidateControl("ID") you can invalidate just the specific dropDown control, not the whole ribbon.

    Very brief example:

    Sub dd01OnAction(control As IRibbonControl, ID As String, index As Integer)
        '***** Assumes that MyCollection is initialized elsewhere
        '***** and filled with strings :)
        Debug.Print "The value is " & MyCollection.Item(index)
    
        If MyCollection.Item(index) = "Sky" Then MsgBox "323"
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The dropdown list will not select the value I need Dictionary<int,int> RowDict = new
Dropdown list 1: <select name=ddlArea onchange=showState(this.value)> Dropdown list 2: <select name=ddlFType onchange=showState(this.value)> I want
Following dropdown: <select id='dropdown' name='dropdown' onchange='showChart(this.value)'> <option value=1>Foo</value> <option value=2>Bar</value> </select> Calls this javascript
I am using dropdown in ASP.net to display image along with value <asp:DropDownList ID=ddBanner
I have a dropdown inside a <td> tag in a table row. I need
I successfully followed the following answer to Add Dropdown Menu to CRM 2011 ribbon
i have a dropdown in the header and whatever the value is selected in
I want to use Dropdown onchange function into html to pass value, it works
I have made a dropdown menu. I need a 25px x 25px image to
the dropdown is used in my paypal button: <input type=hidden name=on0 value=Type>Type of sauce

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.