+ Reply to Thread
Results 1 to 6 of 6

Conditional Printing

  1. #1
    Registered User
    Join Date
    01-22-2017
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    61

    Conditional Printing

    I'm trying to make certain cells print only if they do not contain the value of "Case No." I want the whole page to print- just those specific calls to remain blank if their contents contain that value. So far, I've found about a dozen ways on how not to do it. That's the first step, right? Eliminate all the wrong ways and then you're left with the right way!

    Conditional Formatting is not an option- the printer at this company will always print black text regardless of font color. I also found a module that will prevent the whole page from printing if the contents of those cells are "Case No.", but that's no good. I just need those cells to be blank.

    Is there a VBA function that will take care of this?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Conditional Printing

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.



    To add a file to a post

  3. #3
    Registered User
    Join Date
    01-22-2017
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    61

    Re: Conditional Printing

    All right, I attached a copy of it- I removed several UserForms so that it wouldn't be too large for this forum. Max size allowed is 1M and it was 2.5M.

    I need the cells that contain, "Case No.", "Serial Number", and "New Serial Number" to not print when they contain those values.
    Attached Files Attached Files

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Conditional Printing

    What do you mean by Print?
    Are you referring to setting the print range?

  5. #5
    Registered User
    Join Date
    01-22-2017
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    61

    Re: Conditional Printing

    When the user hits the "Print" button to send the document to a printer, I would like the cells I mentioned to show as blank on the paper if the cells have the default values.
    I think I came up with a way to get that done. When I get a few minutes, I'll try and use a printer function to change the values to "" if they have the default values. This will be done right when the user prints the spreadsheet (I hope). Then it should print just fine.

  6. #6
    Registered User
    Join Date
    01-22-2017
    Location
    Michigan
    MS-Off Ver
    365
    Posts
    61

    Re: Conditional Printing

    It works!

    In ThisWorkbook, I have:
    Please Login or Register  to view this content.
    And in a module, I have:
    Please Login or Register  to view this content.
    This makes it blank for the print and then restores the default values. To the user, it appears as if the default values simply don't print at all.

+ 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] Conditional Formatting : Printing
    By itselflearn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2013, 04:56 PM
  2. Replies: 7
    Last Post: 04-29-2013, 08:38 PM
  3. Conditional Report Printing
    By pure in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2011, 09:14 AM
  4. Conditional Printing
    By chris100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2006, 09:10 AM
  5. Conditional Printing of worksheet
    By Thor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2006, 10:55 PM
  6. [SOLVED] Printing conditional images
    By Trav in forum Excel General
    Replies: 6
    Last Post: 01-11-2006, 10:50 PM
  7. [SOLVED] VBA Bug with conditional formatting/printing?
    By FrigidDigit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2005, 06: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