Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Macro to print filtered results

Hi

I am trying to print print a list of invoices for clients which changes each month. I would like to create a macro to speed up the process.

Without using a Macro i would follow the following steps:
Select cell on the invoice worksheet
select the first client on the client 'autofilter' list
select a cell on the invoice (so correct area is printed)
Go to file print, select printer, print pages 1 - 1, then press print.
repeat for next client.

So far i have the following VBA intructions but it is not working correctly because:
1 i am using the 'criteria' or name listed in the menu which is not working because it keeps changing from month to month
2 and i don't know how to get it to repeate for the next item on the autofiltered list

Sub printinvoice()
'
' printinvoice Macro
' Macro recorded 29/09/2010 by Jon Taylor
'
'
Range("M2").Select
Selection.AutoFilter Field:=1, Criteria1:="Client1"
Range("M2").Select
Application.ActivePrinter = "PDFCreator on Ne01:"
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate _
:=True
End Sub


Any help with this would be greatly appreciated.

Thanks
Jon
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting filtered results Dennis Excel Discussion (Misc queries) 4 January 28th 08 07:01 PM
run macro then print the results as pdf file changing the name eac Richard Ward[_2_] Excel Discussion (Misc queries) 0 October 26th 07 10:01 PM
using macro to copy and paste filtered results, what if blank? priceyindevon Excel Worksheet Functions 2 December 14th 06 10:09 AM
save filtered results bookworm Excel Discussion (Misc queries) 5 March 9th 06 09:29 PM
Filtered results and printing glassjo New Users to Excel 1 September 16th 05 06:30 PM


All times are GMT +1. The time now is 12:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"