« Unable to set the FreezePanes property of the Window class » Excel 2016 (Office 365)

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

« Unable to set the FreezePanes property of the Window class » Excel 2016 (Office 365)

Message par ForumBot »

« Unable to set the FreezePanes property of the Window class » Excel 2016 (Office 365)

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: « Unable to set the FreezePanes property of the Window class » Excel 2016 (Office 365)

Message par ayi »

Oui ! J’ai corrigé cela comme Xatoo l’a suggéré en ajoutant :


Worksheet.Application.ActiveWindow.WindowState = Microsoft.Office.Interop.Excel.XlWindowState.xlNormal;


Il est important d’ajouter que cette solution ne fonctionne que lorsque la fenêtre est effectivement réduite, vous devez donc vérifier cela.


Détail amusant : cela n’envoie toujours pas la fenêtre au premier plan.

Répondre

Revenir à « Excel & VBA »