G
Guest
Hi folks,
In a rather large application written for/in Excel 2000 VBA,
I have the following two statements in the Worksheet_Activate()
sub of one of my worksheets.
ActiveWindow.WindowState = xlMaximized
Application.WindowState = xlMaximized
I'm trying to maximize both the application and the current
workbook window.
Instead of maximizing the window it *minimizes* it as soon as
the Application.WindowState = xlMaximize statement is executed.
Reversing the order had no effect.
I checked the numeric value for xlMaximize, xlNormal, and
xlMinimize via the Intermediate window and I get:
x = xlMinimized (and the others)
?x
-4140 ' maximized
-4137 ' minimized
-4143 ' normal
I tried changing the window state manually and then checking
the WindowState. I get: (the same results)
?Application.WindowState (and the others)
-4137 ' maximized
-4140 ' minimized
-4143 ' normal
Any idea what's going on?
TIA,
David
=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F
David Hansen
In a rather large application written for/in Excel 2000 VBA,
I have the following two statements in the Worksheet_Activate()
sub of one of my worksheets.
ActiveWindow.WindowState = xlMaximized
Application.WindowState = xlMaximized
I'm trying to maximize both the application and the current
workbook window.
Instead of maximizing the window it *minimizes* it as soon as
the Application.WindowState = xlMaximize statement is executed.
Reversing the order had no effect.
I checked the numeric value for xlMaximize, xlNormal, and
xlMinimize via the Intermediate window and I get:
x = xlMinimized (and the others)
?x
-4140 ' maximized
-4137 ' minimized
-4143 ' normal
I tried changing the window state manually and then checking
the WindowState. I get: (the same results)
?Application.WindowState (and the others)
-4137 ' maximized
-4140 ' minimized
-4143 ' normal
Any idea what's going on?
TIA,
David
=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F
David Hansen