Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to create one button, which changes arranging the windows on
the screen from maximized status to tiled, by next clicking from tiled to horizontal, by next clicking from horizontal back to maximized. I don't know, how to get ArrangeStyle value to set the next one in one procedure. Thank you Zdenek Moravec Panasonic AVC Networks Czech |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Zdenek
I don't either. You'd think that would be a property of Application or Windows, but I sure can't find it. You could use a module level variable as a workaround. Dim lWndState As Long Sub SwitchView() Select Case lWndState Case xlMaximized Windows.Arrange xlArrangeStyleTiled lWndState = xlArrangeStyleTiled Case xlArrangeStyleTiled Windows.Arrange xlArrangeStyleHorizontal lWndState = xlArrangeStyleHorizontal Case Else ActiveWindow.WindowState = xlMaximized lWndState = xlMaximized End Select End Sub -- Dick Kusleika Excel MVP Daily Dose of Excel www.dicks-blog.com Zdenek Moravec wrote: I want to create one button, which changes arranging the windows on the screen from maximized status to tiled, by next clicking from tiled to horizontal, by next clicking from horizontal back to maximized. I don't know, how to get ArrangeStyle value to set the next one in one procedure. Thank you Zdenek Moravec Panasonic AVC Networks Czech |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Dick
This is exactly, what I need. Thank you Zdenek Moravec |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Grouped Sheets - Windows Arrange | Excel Discussion (Misc queries) | |||
Arrange Windows | Excel Discussion (Misc queries) | |||
Excel should let me change the form data arrange direction | Excel Worksheet Functions | |||
change event procedure | Excel Programming | |||
Worksheet change sub procedure | Excel Programming |