Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Macro in excel


Good Afternoon,

I am a little new to writing Macros in Excel.

I have created a Bill template and I would like to attach a macro to
the template only so that they can either click or go via a shortcut
key.

I need them to print to there default printer, 1 copy on headed paper
and the 2 copies on plain.

I have tried a number of different ways but keep getting 3 plain
copies?

I also need it to recognise the different printers most are laserjets
and the headed paper is in tray 3, but some are different?

Please can anyone help,

Many thanks,


--
VickyC
------------------------------------------------------------------------
VickyC's Profile: http://www.excelforum.com/member.php...o&userid=27391
View this thread: http://www.excelforum.com/showthread...hreadid=489037

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Print Macro in excel

this link is to an article by Getz on printing in Access using the
WindowsAPI. While it is for access, it is pretty much the same in Excel.
the main difference is that Access has a printer object and in Excel you
would need to use more API functions to get a handle to the printer.

http://msdn.microsoft.com/archive/en...softAccess.asp

--
Regards,
Tom Ogilvy



"VickyC" wrote in
message ...

Good Afternoon,

I am a little new to writing Macros in Excel.

I have created a Bill template and I would like to attach a macro to
the template only so that they can either click or go via a shortcut
key.

I need them to print to there default printer, 1 copy on headed paper
and the 2 copies on plain.

I have tried a number of different ways but keep getting 3 plain
copies?

I also need it to recognise the different printers most are laserjets
and the headed paper is in tray 3, but some are different?

Please can anyone help,

Many thanks,


--
VickyC
------------------------------------------------------------------------
VickyC's Profile:

http://www.excelforum.com/member.php...o&userid=27391
View this thread: http://www.excelforum.com/showthread...hreadid=489037



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Macro in excel


Thank you for your help....

Really appreciated...!


--
VickyC
------------------------------------------------------------------------
VickyC's Profile: http://www.excelforum.com/member.php...o&userid=27391
View this thread: http://www.excelforum.com/showthread...hreadid=489037

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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Why does macro speed slow after Excel Print or Print Preview? Larry A[_3_] Excel Programming 6 May 16th 05 11:22 AM
Excel Print Macro Bruiser[_2_] Excel Programming 0 September 28th 04 12:22 PM
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook will Excel Programming 3 September 23rd 04 08:05 PM


All times are GMT +1. The time now is 07:18 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"