Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Apr 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Resize Excel Workbook (Excel 2003)

    Is it possible to use VBA to open an excel workbook and have it resize to whatever size I want, like 4 by 6? Does anyone have an example?

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Resize Excel Workbook (Excel 2003)

    I am not sure what you want to do. A workbook (pre XL2007) contains worksheets that are always the same size: 256 columns

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Resize Excel Workbook (Excel 2003)

    Resize what to 4 by 6 what?
    Legare Coleman

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Resize Excel Workbook (Excel 2003)

    Do you mean the entire application window? Settings are in Pixels. In the ThisWorkbook Module:

    Private Sub Workbook_Open()
    With Excel.Application
    .WindowState = xlNormal
    .Top = 100
    .Left = 200
    .Width = 600
    .Height = 400
    End With
    End Sub
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    Star Lounger
    Join Date
    Apr 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Resize Excel Workbook (Excel 2003)

    Thats it! Thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •