Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Printing contents of a section twice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tamis - 03 Jan 2008 16:22 GMT
First I am using Word 2003.  My macro needs section 2 to be printed twice in
a certain order, for example, Client #1, two copies, Client #2, two copies,
Client#3, two copies, etc.  The number of clients can vary, but the beginning
page number in the macro is always Page 2.  Then I only need to print 1 copy
of Section 1 and one copy each of Sections 3-9.
Tony Jollans - 03 Jan 2008 18:33 GMT
I'm not sure what you mean about the different clients but to print the
sections you want, in the Pages: text box in the Print dialog, enter
"s2,s2,s1,s3-s9" (without the quotes) - the page number isn't relevant
unless you want to print partial sections.

Signature

Enjoy,
Tony

> First I am using Word 2003.  My macro needs section 2 to be printed twice
> in
[quoted text clipped - 5 lines]
> copy
> of Section 1 and one copy each of Sections 3-9.
David Sisson - 03 Jan 2008 18:37 GMT
> First I am using Word 2003.  My macro needs section 2 to be printed twice in

Are these Word sections, or are they titles in your document.

If the first try this.  Printout one full document, then run this.

Sub PrintSections()
Dim Response As String

Response = InputBox("How many copies?", "Enter number")

ActiveDocument.Sections(2).Range.Select

If Len(Response) <> 0 Then
   ActiveDocument.PrintOut _
   Range:=wdPrintSelection, _
   copies:=Response
End If
End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.