Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2013, 09:04 AM
nikkifox nikkifox is offline Printing - merged document, multiple sections Windows 7 32bit Printing - merged document, multiple sections Office 2010 32bit
Novice
Printing - merged document, multiple sections
 
Join Date: Apr 2013
Posts: 1
nikkifox is on a distinguished road
Default Printing - merged document, multiple sections

I have a macro I've been using for the last few years, which now doesn't seem to work in 2010.

This macro enables me to print a resulting merged document, but at each new section treating it as a new job.

For example ...

I have a 5 page merge template consisting of a covering letter (to be printed onto letterhead - tray 1) and the remaining pages are appendices (to be printed onto plain paper - tray 2) duplex. Once merged, the document is 5 pages x "n" of records in the dataset. So I want every occurance of the covering letter to print on letterhead, e.g. pgs 1, 6, 11, 16 etc.

Am I missing a trick?

The macro was .....
Code:
Dim i As Long
With ActiveDocument
  For i = 1 To .Sections.Count
    .PrintOut Background:=False, Range:=wdPrintFromTo, From:="s" & i, To:="s" & i
  Next i
End With
Thank you in advance for your help.



Nikki

Last edited by macropod; 04-08-2013 at 03:09 PM. Reason: Added code tags & formatting
Reply With Quote
  #2  
Old 04-08-2013, 03:11 PM
macropod's Avatar
macropod macropod is online now Printing - merged document, multiple sections Windows 7 64bit Printing - merged document, multiple sections Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,339
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Hi nikkifox,

The code snippet looks fine, and will work with Office 2010. What particular issues are you having?
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 04-09-2013, 12:54 AM
macropod's Avatar
macropod macropod is online now Printing - merged document, multiple sections Windows 7 64bit Printing - merged document, multiple sections Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,339
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

Cross-posted at: http://www.excelforum.com/word-progr...-sections.html
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to embed printing options to pages or sections Coaster Word 0 07-30-2011 07:44 PM
Forms with multiple sections dazza_dog Word 0 09-14-2010 05:03 AM
Printing Sections of a Word Document Andy Jenkinson Word 4 02-12-2010 02:53 AM
Document with selective sections printing krismason Word 0 07-09-2009 03:30 AM
Printing - merged document, multiple sections pagination troubleshooting with multiple sections Katy D'Angelo Word 11 09-28-2006 12:13 PM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft