Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2019, 03:10 AM
macropod's Avatar
macropod macropod is offline Printing Letter with printing base on Title in Grid Windows 7 64bit Printing Letter with printing base on Title in Grid Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,527
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


Quote:
Originally Posted by Ali Mubarak View Post
Yes, after Selecting the type as "Directory" the output of the bill starts consolidating on one page. I read the VB Scrip, it is good need little effort to incorpoare the scrip in the file.
There is no 'VB Scrip' in your attachment. Neither does your attachment have the required changes to the field coding. Clearly you haven't paid attention to what the tutorial says or to the demonstration links I supplied.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-11-2019, 03:37 AM
Ali Mubarak Ali Mubarak is offline Printing Letter with printing base on Title in Grid Windows XP Printing Letter with printing base on Title in Grid Office 2010
Novice
Printing Letter with printing base on Title in Grid
 
Join Date: Feb 2019
Posts: 6
Ali Mubarak is on a distinguished road
Default

Hi,


I attached the output of the macro,



I assumed as the following is the VB script to merge the "Tables".


Merging to Tables

Any of the previous examples can produce their output in a table format. All you need to do is to replace the heading & data lines in the field code with an equivalent table. When you do so, however, each record becomes a one-row table, as per the ‘Calculating Group and Sub-Group Totals’ example (page 14). To turn that output into one table per group you can run the following ‘TableJoiner’ macro after completing the merge.
Sub TableJoiner()
Application.ScreenUpdating = False
Dim oPara As Paragraph
For Each oPara In ActiveDocument.Paragraphs
With oPara.Range
If .Information(wdWithInTable) = True Then
With .Next
If .Information(wdWithInTable) = False Then
If .Text = vbCr Then .Delete
End If
End With
End If
End With
Next
Application.ScreenUpdating = True
End Sub




Regards,


Ali Mubarak
Attached Files
File Type: doc Mailmerge Main Document.doc (39.5 KB, 12 views)
File Type: docx Directory1.docx (17.2 KB, 12 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing a letter sized document that contains an envelope page CyberChulo Word 5 11-01-2017 04:47 AM
Printing Letter with printing base on Title in Grid Printing Document Title Automatically Khans_nytorv Word 3 06-14-2016 07:45 PM
Printing Letter with printing base on Title in Grid How to add letter head picture to a section for printing juliem Word 4 10-12-2015 08:54 PM
Word documents all are now printing in the top right corner as well as cutting off some printing MattyJ Word 2 03-20-2015 10:15 AM
Non-Printing Graphics vs Printing v_kiviranna Drawing and Graphics 4 06-29-2010 07:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:32 AM.


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