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 / Mailmerge and Fax / July 2007

Tip: Looking for answers? Try searching our database.

how do I set up to start printing at label other than first

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Irish-woman - 13 Jul 2007 22:48 GMT
I want to create a mail merge document that will start printing labels on
some label other than the first one - to use up partially printed label
pages.  Of course I can merge to a document, cut out the first serveral
labels and paste them at the end, but isn't there smoother way?
Doug Robbins - Word MVP - 14 Jul 2007 04:21 GMT
If you run the following macro when you have setup your label type mailmerge
main document, it will ask you how many labels have been used on the first
sheet and then it will insert the necessary number of blank records into the
data source and then execute the merge to a new document which you can then
print out onto your labels.

It is designed for use when the data source is a table in a Word document.
If your datasource is in some other format, use a catalog or directory type
mailmerge to get it into the form of a Word document and use that Word
document instead of your original data source.

Macro to set the first label on a part sheet of labels for a label type
mailmerge.
Dim MMMDoc As Document
Dim dsource As Document
Dim dtable As Table
Dim i As Long, j As Long
Set MMMDoc = ActiveDocument
With MMMDoc.MailMerge
   If .MainDocumentType = wdMailingLabels Then
       If .State = wdMainAndDataSource Then
           Set dsource = Documents.Open(.DataSource.Name)
           Set dtable = dsource.Tables(1)
           i = InputBox("Enter the number of labels that have already been
used on the sheet.", "Set Starting Label")
           If IsNumeric(i) Then
               With dtable
                   For j = 1 To i
                       .Rows.Add BeforeRow:=.Rows(2)
                   Next j
               End With
           End If
           .Destination = wdSendToNewDocument
           .Execute
       End If
   End If
End With
dsource.Close wdDoNotSaveChanges

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I want to create a mail merge document that will start printing labels on
> some label other than the first one - to use up partially printed label
> pages.  Of course I can merge to a document, cut out the first serveral
> labels and paste them at the end, but isn't there smoother way?
 
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.