+ Reply to Thread
Results 1 to 5 of 5

Need workbook to open to consistent size

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    florida
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    29

    Need workbook to open to consistent size

    Would like the workbook to open to a consistent X and Y size regardless of its size the last time it was saved. This would allow the initial worksheet to always have the same appearance. I find no attribute of WorkbookOpen that does this. This topic nay havebeen discussed before but could not do a search to find it.
    Any suggestions? Thanks - Ron

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need workbook to open to consistent size

    I believe you are talking about the sheet zooming size

    Add the below code in This Workbook Code Window

    To Add Excel VBA Code to a Workbook / This Workbook Module

    1. Copy the code that you want to use
    2. Select the workbook in which you want to store the code
    3. Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    4. In the Project Explorer, find your workbook, and open the list of Microsoft Excel Objects
    5. Right-click on the ThisWorkbook object, and choose View Code
    6. Where the cursor is flashing, choose Edit | Paste

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-24-2013
    Location
    florida
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    29

    Re: Need workbook to open to consistent size

    Thanks Sixthsense! I was actually thinking of the size of the Excel workbook outer dimensions. However, your solution is better in that the content of the worksheet does appear properly. I have 12 similar worksheets in the workbook (one for each month). Could you suggest the best way to modify your code so that it will set each worksheet when selected (active sheet) to the same % (I found 90% perfect)?? Each worksheet has a separate name of course (Jan, Feb, etc.). I could try to work in a series of IF statements - one each month - but perhaps there is a better way. Still learning here.
    Thanks - Ron
    Last edited by RonRich; 01-09-2014 at 08:56 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need workbook to open to consistent size

    Replace the below code with the previously suggested code

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-24-2013
    Location
    florida
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    29

    Re: Need workbook to open to consistent size

    That did it Sixthsense. Thanks ever so much. Now each worksheet opens at 90%.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Active X List box cnhanges size each time I open the workbook?
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2013, 07:14 AM
  2. Workbook Open to 100% of any screen size
    By adste89 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-11-2012, 09:40 AM
  3. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10:20 PM
  4. Open workbook name size
    By Prema in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2005, 07:05 AM
  5. Keeping multiple sheets consistent in a workbook
    By Dave in forum Excel General
    Replies: 2
    Last Post: 03-14-2005, 06:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1