Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to reload excel ribbon dynamic dropdown boxes #232

Open
michael-hgl opened this issue May 16, 2024 · 2 comments
Open

how to reload excel ribbon dynamic dropdown boxes #232

michael-hgl opened this issue May 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@michael-hgl
Copy link

The VBA ribbon callback functions load the dynamic dropdown boxes when
you first select your Tab on the Excel ribbon.

But I need to know how to later clear and reload these dropdown boxes with
different info.

Anybody know how to do this or point me to some info?

Thanks,
Michael

@michael-hgl michael-hgl added the bug Something isn't working label May 16, 2024
@thefasquelle
Copy link

@michael-hgl This is not the proper place to ask this. This repo is only about Office RibbonX Editor, not VBA programming. You should ask this on stackoverflow or a dedicated forum (mrexcel.com, excelforum.com ...). I will answer your question but in the future please don't put off-topic question here.

You need to use the OnLoad callback to store your ribbon object. Then, at any time in your VBA code you can call Ribbon.InvalidateControl(dropDownId) to invalidate just your drop down menu, or Ribbon.InvalidateRibbon() to invalidate the entire ribbon. The next time Excel needs to display an invalidated control, it will call its callback again.

You may search for community posts about these topics and read the official documentation about ribbon customization

@michael-hgl
Copy link
Author

michael-hgl commented Jun 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants