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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
(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,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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