+ Reply to Thread
Results 1 to 2 of 2

Help with VBA Autofit Screen View to any screen resolution

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    Wellingborough, England
    MS-Off Ver
    Microsoft Office 2016 Professional
    Posts
    49

    Help with VBA Autofit Screen View to any screen resolution

    Hi all,

    I have some code that allows me to automatically resize an excel spreadsheet to fit on any screen resolution either vertically (by columns) or horizontally (by rows)


    Module Code

    Please Login or Register  to view this content.

    Worksheet Code


    Please Login or Register  to view this content.

    Is it possible to autofit columns A3:AS3 first then have their column widths locked then autofit rows A6:A46.

    The result would be that the spreadsheet would fit onto any computer screen regardless of the screen resolution because it will have been stretched both vertically and horizontally.


    I hope this makes sense and hope that someone will be able to help me with this ....

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Help with VBA Autofit Screen View to any screen resolution

    I use this Function I wrote to do that

    Please Login or Register  to view this content.
    In your case I'd run

    Please Login or Register  to view this content.
    See if it works for you
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ 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] Adjust screen resolution automatically to fit all screen sizes
    By Ace_XL in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 08:51 AM
  2. VBA and Screen video resolution
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2008, 01:45 PM
  3. Screen Resolution
    By yonyon7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2007, 12:39 PM
  4. [SOLVED] Screen Resolution
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2006, 11:40 AM
  5. Screen Resolution
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2006, 01:40 AM
  6. Can't get screen resolution
    By StevenS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2005, 09:10 AM
  7. Userform and screen resolution
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2005, 10:05 AM
  8. Screen Resolution
    By Ronbo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2005, 10: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