+ Reply to Thread
Results 1 to 7 of 7

Creating a filter and print macro

  1. #1
    Registered User
    Join Date
    10-09-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Creating a filter and print macro

    Hello all,

    I am having some trouble getting setting up a macro that lets me filter out data then filter the blanks from the set range. After the filters are made to then print out the information to both PDF and a printer

    I have attached a sample from my workbook and was hoping i could get some help.


    On my original workbook the code is
    Please Login or Register  to view this content.
    it does every function but instead of only hiding the info i don't want it hides everything.
    Sample.xlsx
    Last edited by alansidman; 10-09-2013 at 01:01 PM. Reason: added code tags

  2. #2
    Registered User
    Join Date
    10-09-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Creating a filter and print macro

    self bump

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Creating a filter and print macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (I added them for you this time. Please adhere to our rules in the future.)

    It is customary to wait 24 hours before bumping a thread. Please read our rules. It contains tips on how to get your thread answered.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    10-09-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Creating a filter and print macro

    OK sorry alansidman just made the account on here because i am frustrated by this issue, i will keep this in mind with my future postings.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Creating a filter and print macro

    Hi Winklestine

    I've looked at this twice. Why does your Sample File bare no resemblance to the Code you posted? I've looked at this twice.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Registered User
    Join Date
    10-09-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Creating a filter and print macro

    The code i posted is from the Original document they are the same concept but i thought using the sample would be cleaner then putting in the whole workbook.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Creating a filter and print macro

    Hi Winklestine

    The attached will provide a printed version and a PDF of the Forklift Report with this Code
    Please Login or Register  to view this content.
    However, I suspect what you want is
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Macro to print each name in a pivot table filter drop-down on a seperate page
    By Tamarissa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-13-2012, 02:28 PM
  2. Creating an excel macro with a filter condition.Help
    By rishi.ssh in forum Excel General
    Replies: 7
    Last Post: 05-05-2012, 09:21 PM
  3. VBA. identify unique values, loop them, filter them in, set print area & print it
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2012, 09:56 PM
  4. Creating a Macro to print worksheets
    By vonbates in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2011, 11:42 AM
  5. Macro/Filter For Selective Print Range??
    By Garrick in forum Excel General
    Replies: 1
    Last Post: 01-25-2007, 04:50 AM

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