+ Reply to Thread
Results 1 to 6 of 6

Print Filled Cells Only

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Print Filled Cells Only

    Hi All,
    I have copied the vba coding from one of the threads. I humbly seek help to fine tune it. My intention is to filter and print the range where employees come in late. For instance, print all employees except Betty,Tim,Peter and Sean as they are never late. Do not print "No Name" row as they are no longer attached with the company. Attached herewith my file for better understanding. Any help and tips are greatly appreciated. Thanks in advance.
    Attached Files Attached Files
    Last edited by seanyeap; 07-22-2010 at 10:57 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,433

    Re: Print Filled Cells Only

    I think the easiest solution would be to add a column to count the occurences of "LATE" for each person and then filter on that as well as the name column.

    Regards

  3. #3
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Print Filled Cells Only

    Hi,
    I am looking for a marco to accomplish the task, is it possible?

  4. #4
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Print Filled Cells Only

    Hi All,
    Can anyone help me out? Thanks in advance.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Print Filled Cells Only

    I would also recommend simply adding a "key column" on the right to flag the rows to display.

    In N6 put the word "Key".
    In N7 and copied down:
    =COUNTA(D7:K7)>0

    AutoFilter N6 for the word "TRUE" and print what's left visible, then turn off the autofilter.

    You can record that into a very simple macro, yes? Give it a try.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342

    Re: Print Filled Cells Only

    Hi Jerry Beaucaire,
    Thanks a lot. Your stunning method has solved my problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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