+ Reply to Thread
Results 1 to 3 of 3

VBA Code to automatically Print all the information from filtered sheet

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    VBA Code to automatically Print all the information from filtered sheet

    Hi All

    I have a query and will appreciate if anyone can help me with the VBA code as my VB skills are limited.

    I have a spreadsheet which takes its data from an outside database and produces a Pivot report. The report consistes of the Sales and stock information for diffrent employees.

    The way the spreadsheet is designed, user will choose his/her name from a drop down filter and the figures on the Main Table gets updated automatically for the chosen name. They can then print the sheet for their records.

    However What I need is to be able to have a print button at the top of the page so when the area manager clicks on it it will print each employees figures an one sheet in one go, i.e. rather than choosing the name and then pressing print, it will automatically select the first name in the list and prints the data for that person gets printed and then second name and the data for the second person and so on. I hoope this makes sense.

    I have attcahed a very simple spreadsheet (without the Pivot) just to make it a bit clearer. So in the sample sheet you can choose the name (A2) and the data in the main table will show the result for AAA, then that person can print the sheet. But What I need is to click a print button so that the result for employee AAA be printed then the employee BBB is chosen and its result gets printed and so on. Currently the spreadsheet is changes the figures in b6-b10 depending on the name chosen justy to be able to test the print once its down so that diffrent figures are printed for diffrent people.

    I really will apprecaite anyones help with the code if its possible to do.
    Attached Files Attached Files

  2. #2
    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: VBA Code to automatically Print all the information from filtered sheet

    Cross posted here

    http://www.ozgrid.com/forum/showthread.php?t=194352
    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.

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: VBA Code to automatically Print all the information from filtered sheet

    This works great.

+ 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 Set Print area to a max of 50 (plus Header rows) on filtered information
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-07-2015, 04:01 PM
  2. [SOLVED] At once Print Reports with different information AUTOMATICALLY.
    By AmirSoft in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2015, 09:13 AM
  3. Replies: 1
    Last Post: 04-07-2013, 05:33 AM
  4. Replies: 1
    Last Post: 08-08-2012, 01:17 AM
  5. copying filtered data from one sheet to another automatically
    By hnnn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2010, 10:36 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