Message d'erreur avec Ribbon.Invalidate

MichelVaillant

New Member
Joined
Dec 7, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Bonjour à tous et merci de me recevoir dans votre forum.
Dans une application Excel, j’ai un ruban personnalisé. Au bout de quelques utilisation, j’ai un message d’erreur - Variable objet ou variable bloc with non défini.
Voici le code qui me cause problème. Avez-vous déjà rencontré cet incident et comment l'avez-vous résolu ?
Merci par avance pour votre aide.
"Public Sub SetGestionEnabled(ByVal Enabled As Boolean)
mGestionEnabled = Enabled
mRibbon.Invalidate
End Sub"
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
(Google translation)

Bienvenue sur MrExcel Message Board!

Avez-vous déjà rencontré cet incident et comment l'avez-vous résolu ?

Oui, cela signifie que l'objet mRibbon perd en quelque sorte sa référence au ruban. Voir l'article suivant à ce sujet et la solution de @RoryA.


Welcome to the MrExcel!
Have you encountered this incident before and how did you resolve it?
Yes, it means the mRibbon object somehow loses its reference to the Ribbon. See the following article about this and @RoryA's solution.

 
Upvote 0
Solution
Upvote 0

Forum statistics

Threads
1,223,927
Messages
6,175,444
Members
452,642
Latest member
acarrigan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top