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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
(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
(Google translation)

Bienvenue sur MrExcel Message Board!



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.


Bonsoir et merci pour votre réponse.
Je vais regarder les liens de prés.
Bonne soirée
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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