"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)
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: "Unable to set the FreezePanes property of the Window class" Excel 2016 (office 365)

Message par Clippy »

Yes! I fixed this like Xatoo suggested with adding:

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

```

It is important to add that this solution only works when in fact the window is minimized, so you need to check on this.

Funny detail is that this still does not send the window to the foreground.
Répondre

Revenir à « Excel & VBA »