Closed Thread
Results 1 to 2 of 2

resize window to specific columns without zoom

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    79

    resize window to specific columns without zoom

    Hello,

    Does anyone know of a way to have the active window resize by width to fit only columns A:Q? I know of the zoom to method but I want to keep the zoom level what it is.

    I have been dabbling with some code that calculates the total width of the columns but have been having issues with an exact ratio for column widths to window width.

    Also does anyone know why the pixel width value of columns wont ever end in "5"? For example when I change a column width the pixel value will jump from 124 to 126 and actually resize, but then when I resize the same column again from 126 to 127, its doesn't actually resize the column and will show it as 126 pixels, and then when I resize to 127 pixels again it will actually resize. I think this could be the reason I'm having troubles finding a constant ratio for column widths to window width.

    Thanks, I know this may be hard to understand, I can try to clarify if necessary.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,053

    Re: resize window to specific columns without zoom

    Duplicate thread closed. Continue in your original thread here: https://www.excelforum.com/excel-pro...umn-width.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] resize window upon selection
    By f_htn in forum Excel General
    Replies: 3
    Last Post: 01-12-2015, 05:37 AM
  2. ZOOM and SCROLL of Inactive Window
    By exceere in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2014, 11:06 PM
  3. How to size App. Window to fit cells? (not Zoom)
    By dblword in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-16-2011, 06:23 PM
  4. Opening seperate sheet in wb in new window in predefined zoom
    By camcrazy08 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2007, 09:57 AM
  5. Excel Window zoom
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2006, 06:25 PM
  6. [SOLVED] Position Form on screen v Window Zoom !
    By RAFAAJ2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2005, 05:05 AM
  7. Need to resize a worksheet window
    By Hasta Pasta in forum Excel General
    Replies: 6
    Last Post: 01-08-2005, 07: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