Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimize and Maximize window macro

Status
Not open for further replies.

stillwillyboy

Technical User
Joined
Jan 22, 2004
Messages
165
Location
US
Unless there is a Min and Max button that I can add to a toolbar, I am wanting to be able to write macros to handle these. I have:

Sub MinimizeWindow()
Application.WindowState = xlMinimized
End Sub

Sub MaximizeWindow()
Application.WindowState = xlMaximized
End Sub

But neither works. I get the "Object Doesn't support property or method" error message. Is the code different for Excel and Outlook.

Thanks,

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top