+ Reply to Thread
Results 1 to 2 of 2

Fit on page programmatically

  1. #1
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Fit on page programmatically

    Hello

    I have a table that spreads my document onto 2 pages (see attach). If I increase the width of one column and select the 'Fit All Columns on One Page' option the whole document will fit on one page. I don't know why but it's not (always) working.
    Any idea? Thanks!fitonpage.xls
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  2. #2
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Re: Fit on page programmatically

    From what I noticed, if I scroll on second page and run the macro it works ok, but if I am on the first page, running the macro doesn't do the job. Now I've found 2 solutions for this problem: either zoom out to see both pages, either select a cell in the last used row (page 2) before running the script.
    The downside is that I cannot use the Application.ScreenUpdating.
    Any thoughts?

+ 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. Programmatically scrolling to top
    By VanS in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2021, 09:01 PM
  2. programmatically retrieve links from web page
    By Loane Sharp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2006, 11:20 AM
  3. XML mapping programmatically
    By Kamal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-07-2005, 03:05 PM
  4. Move page breaks programmatically...
    By Theresa Smallwood in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-13-2005, 11:05 AM
  5. How do I programmatically specify a range.
    By Hari in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2005, 12:23 PM

Tags for this Thread

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