"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)
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

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

Message par ForumBot »

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 »