Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My Excel application is splitted into two horizontal windows (not
panes), the one above is a diagram with fixed size in height. The one below is a normal calculation sheet. The problem is how to program in VBA, that the window below always will fill the remaining space of the Excel spreadsheet (the remaining space is depending of the monitor, resolution, the chosen toolbars etc). Thanx Siggy --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
one way:
Const nWINDOW1HEIGHT = 300 'change to suit If Windows.Count < 2 Then Exit Sub With Windows(1) .Top = 0 .Width = Application.UsableWidth .Height = nWINDOW1HEIGHT End With With Windows(2) .Top = nWINDOW1HEIGHT + 1 .Width = Application.UsableWidth .Height = Application.UsableHeight - nWINDOW1HEIGHT End With In article , Geo Siggy wrote: My Excel application is splitted into two horizontal windows (not panes), the one above is a diagram with fixed size in height. The one below is a normal calculation sheet. The problem is how to program in VBA, that the window below always will fill the remaining space of the Excel spreadsheet (the remaining space is depending of the monitor, resolution, the chosen toolbars etc). |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 with two windows in Windows 7 | Excel Discussion (Misc queries) | |||
i want all windows in one excel frame (windows in taskbar) | Excel Discussion (Misc queries) | |||
excel is making binary changes without adjusting date&time | Excel Discussion (Misc queries) | |||
Row height not auto adjusting on wrapped cells (Excel '07) | Excel Discussion (Misc queries) | |||
Excel hangs computer when adjusting margins | Excel Discussion (Misc queries) |