+ Reply to Thread
Results 1 to 5 of 5

Print rows based on cell value

  1. #1
    Registered User
    Join Date
    07-29-2021
    Location
    South Africa
    MS-Off Ver
    365
    Posts
    9

    Post Print rows based on cell value

    Good day Everyone. Hope everything is well.

    I need assistance with printing a sheet based on a cell value

    I have a sheet called ITEMS, there is data from cell C5 to J393. In Column F5 to F393, I have qty column(I would put a quantity). I need a code so that only rows with a value higher that 0 in F to be printed preview in PDF(Already have a print button)

    You assistance would be greatly appreciated.

    Thanks

    Gerhard van Zyl

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

    Re: Print rows based on cell value

    Select the header row,
    Select ribbon Data=>Filter=>Number Filters=>Greater Than=>Enter 0 in the box and click ok

    Once you have practiced that, you can use the macro recorder to get a code.



    -
    2023-01-17_07-00-28.jpg

  3. #3
    Registered User
    Join Date
    07-29-2021
    Location
    South Africa
    MS-Off Ver
    365
    Posts
    9

    Re: Print rows based on cell value

    Hi davesexcel,

    I would prefer a VBA code for my print button. Easier to just click on print button and it will only print rows with a value in F column.

    Thanks

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

    Re: Print rows based on cell value

    I was explaining to you what to do, then use the macro recorder to get the code.

  5. #5
    Registered User
    Join Date
    07-29-2021
    Location
    South Africa
    MS-Off Ver
    365
    Posts
    9

    Re: Print rows based on cell value

    Hi davesexcel,

    Thank You. Done

+ 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] Print certain rows of certain columns based on variable
    By Gaellus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2017, 08:06 AM
  2. [SOLVED] Print selected rows based on cell data
    By sipa in forum Excel General
    Replies: 13
    Last Post: 10-02-2016, 04:08 PM
  3. Print Rows Based on Value in Column A
    By enwoznick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2016, 12:13 AM
  4. [SOLVED] Vba code assistance to print rows based on column date value
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2016, 09:54 AM
  5. VBA code to print rows based on value in select column
    By deadeyesky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2013, 10:50 AM
  6. Print Rows Based on Input
    By pkew22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 12:02 PM
  7. Selectively print rows based on cell data
    By MnMShow in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2010, 01:38 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