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

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

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

ayi
Site Admin
Messages : 9242
Inscription : mer. 22 avr. 2026, 17:21

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 »