+ Reply to Thread
Results 1 to 2 of 2

Print non blanks

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Ardooie
    MS-Off Ver
    Excel 2007
    Posts
    67

    Print non blanks

    I posted this thread half an hour ago, but I could only open it in printable view (so I make a new one, admins can delete the one before)

    In attachment a file, already containing a macro.
    But I need help on a second one.

    In the first sheet (Ritvakken) I have COL B & C compared with F & G. If not the same value ==> they go into COL J & K
    In second sheet (Print 1) there's an overview of those J & K values, but in another order.
    In last sheet (Print 2), all values from J & K are shown, but on other font sizes (that's what the excisting marcro already does).

    In Sheet Ritvakken, there's a button to 'Print'. First of all, it should print the entire page 'Print 1' (allready done in code), but then it should also print the pages from sheet 'Print 2'.
    You'll see it coming, only the pages that are not blank! (otherwhise it will print 132 pages everytime)

    Can someone help me out on this one please?
    Thx !!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-17-2013
    Location
    Ardooie
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Print non blanks

    Found it ...

    Sub Print_Excluding_Blanks()
    Dim Cell As Range, rColA As Range

    Application.ScreenUpdating = False
    Set rColA = Range("A1", Range("A" & Rows.Count).End(xlUp))
    rColA.EntireRow.Hidden = True
    For Each Cell In rColA
    If Cell.Value <> "" Then
    Cell.EntireRow.Hidden = False
    ActiveSheet.PrintPreview '.PrintOut
    Cell.EntireRow.Hidden = True
    End If
    Next Cell
    rColA.EntireRow.Hidden = False
    Application.ScreenUpdating = True
    End Sub
    Last edited by louvaek; 11-16-2014 at 07:20 PM. Reason: Solved

+ 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. Replies: 8
    Last Post: 06-15-2016, 09:53 AM
  2. [SOLVED] How to convert a horizontal vector with blanks into a vertical one without blanks
    By luv2glyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2014, 02:55 PM
  3. Print Blanks
    By prontrad in forum Excel - New Users/Basics
    Replies: 15
    Last Post: 12-28-2009, 12:33 PM
  4. Replies: 0
    Last Post: 02-22-2005, 12:06 AM

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