+ Reply to Thread
Results 1 to 2 of 2

Printing Visible Data

  1. #1
    Forum Contributor
    Join Date
    07-30-2014
    Location
    Mosman, Australia
    MS-Off Ver
    2013
    Posts
    118

    Printing Visible Data

    Hi there,

    Not sure if this is possible but anyway.

    My spreadsheet extracts information from another spreadsheet (a basic ="Sheet1"!A1 formula with a few other things so it either appears with data or appears blank).

    Sometimes the cells will become blank (on purpose). I've set it up (margin size) so the information from each row will appear and print as one page. Sometimes I will information showing on pages 1,2,4,6,7 etc while pages 3,5,8 will appear blank.

    Is there a macro or something that can help so when I go to print (Ctrl+P) it only prints the pages that show visible data (even though every cell has a formula, I only want the pages where data is actually appearing, I don't want the pages that return the value to 0/blank printing). In this example only pages 1,2,4,6,7 will print. In excel there is no option to print selected pages, only a range of pages so I don't want to have to keep changing the ranges, I want to be able to hit print and all the pages with data appearing will print and all the blank pages will skip over.

    Thanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Printing Visible Data

    You could print one page at a time if a specific cell (or a range of cells) on each page pasts the test (not empty).

    Example:
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. need help to lock the shape and made it visible in printing
    By rinadimayuga in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2015, 05:13 AM
  2. Macro for Printing Visible Data only
    By mamuka12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2013, 01:43 AM
  3. Printing a non visible sheet via xldialogprint
    By cadmanweyland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2013, 10:57 PM
  4. Conditional formatting: Applied rules not visible when printing
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2013, 03:32 PM
  5. Error checking of visible filtered data - Display text in textbox if no data visible
    By cocobean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 12:58 AM
  6. Printing only Rows with Visible Data
    By Storm in forum Excel General
    Replies: 7
    Last Post: 12-08-2005, 05:25 PM
  7. [SOLVED] Printing all Visible sheets
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2005, 01: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