Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default can anyone help with the code for creating a aut print macro...

please can anyone help me wih code for creating a macro that will
automatically print 2 copies and save the document when triggered. would it
be possible to add to that same macro, code that will auto close current
workbook and open a new template?
thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default can anyone help with the code for creating a aut print macro...

You can start by recording your own macro.

Open the file that should be printed, saved, and closed.
With that workbook active, hit:
Tools|Macro|Record New Macro
(xl2003 menus)

But record the macro into a new workbook--not this workbook and not personal.

Then do everything you want.
Print twice
save and close the document
and start a new workbook based on your template.

Then stop recording.

Activate the workbook with the newly recorded macro and save it as a nice name.

Next time you need this kind of stuff, open this macro workbook.
Make sure that the workbook that should be printed, saved, closed is active and
hit:
Tools|Macro|Macros...
Select the recorded macros and click Run

des-sa wrote:

please can anyone help me wih code for creating a macro that will
automatically print 2 copies and save the document when triggered. would it
be possible to add to that same macro, code that will auto close current
workbook and open a new template?
thank you


--

Dave Peterson
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
Creating a code for a macro engbe Excel Discussion (Misc queries) 1 May 10th 08 02:28 PM
Creating Print Macro Confused Excel Discussion (Misc queries) 1 April 30th 07 12:53 PM
need help creating a Worksheet_Change code Cajun20th Excel Worksheet Functions 4 May 18th 06 09:12 AM
Code error in creating text files Greshter Excel Discussion (Misc queries) 3 January 15th 06 09:34 PM
Creating Macro or Code Help? Jeni Q Excel Worksheet Functions 2 September 13th 05 02:29 PM


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