+ Reply to Thread
Results 1 to 6 of 6

VBA to fix auto-fit cell heights not printing properly.

  1. #1
    Registered User
    Join Date
    02-11-2016
    Location
    Wisconsin
    MS-Off Ver
    07-360
    Posts
    53

    VBA to fix auto-fit cell heights not printing properly.

    Auto fit row height with wrapped text is cutting of lines when printed but shows fine in the display
    • This is due to excel not being setup perfectly for printing and what you see is not always what you get.
    • I can get it to work by changing the print resolution, but this setting does not work on all printers. This workbook will be used by 20 people with many printers and I would like to have a vba solution that would not require the user to adjust settings to print.
    • Currently the cell heights are auto-fit as cells will have (but not limited to) 1-10 lines of text.
    • The VBA code that I have is designed to make a report and print it, I have
    Thanks in advance for any and all help!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to fix auto-fit cell heights not printing properly.

    I assume you've formatted wrap text?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    02-11-2016
    Location
    Wisconsin
    MS-Off Ver
    07-360
    Posts
    53

    Re: VBA to fix auto-fit cell heights not printing properly.

    yes, it is formatted as wrapped text. I know that the issue is with printing through excel due to http://excel.tips.net/T002785_Printo...ome_Cells.html. I was just hoping that there was a way that I could do it as a before print or something like that. I may just have to have the user select their printer and go through a print preview first to make sure that their resolution works with the printout though this is not my preferred method.
    Last edited by mnadamn19; 02-16-2016 at 05:47 PM.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to fix auto-fit cell heights not printing properly.

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-11-2016
    Location
    Wisconsin
    MS-Off Ver
    07-360
    Posts
    53

    Re: VBA to fix auto-fit cell heights not printing properly.

    Thanks! I changed the +5 to 7 and ended up working on all resolutions!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to fix auto-fit cell heights not printing properly.

    Excellent! You're welcome and thanks for the rep!

+ 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. Auto increment a cell upon printing
    By yourika14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-18-2015, 08:15 PM
  2. [SOLVED] auto increment cell after each printing
    By Hirad001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2015, 05:33 PM
  3. Cell Heights, same row, different column
    By GRIF in forum Excel General
    Replies: 3
    Last Post: 08-24-2010, 01:23 PM
  4. Replies: 1
    Last Post: 06-23-2006, 10:06 PM
  5. [SOLVED] cell heights shift
    By Kevin in forum Excel General
    Replies: 1
    Last Post: 08-16-2005, 09:05 AM
  6. Excel will not auto format all row heights
    By Sebastian in forum Excel General
    Replies: 3
    Last Post: 02-04-2005, 06:07 PM
  7. [SOLVED] Can I have different cell heights in the same row
    By Liz in forum Excel General
    Replies: 3
    Last Post: 01-28-2005, 09: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