Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
CoolVBA CoolVBA is offline
external usenet poster
 
Posts: 3
Default How to suppress the blank lines while mering fields in Word docume

I'm using a Word OCX control to display document, and need toggle the
document display between merged and unmerged status, the VBA code seems as
below:

.mailmerge.opendatasourece(...)
.mailmerge.suppressblanklines = true

if ...
.mailmerge.viewmergefieldcodes = true
else
.mailmerge.viewmergefieldcodes = false
end if

After the above scripts run, I found the blank lines were never been
suppressed while empty fields existed, I know the .Execute() method can
suppress the blank lines, but it will permanently convert the doucment, it's
not what I wanted.

 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suppress Blank Lines in Tables? JohnJohn Tables 4 June 18th 06 11:20 PM
Word mail merge should suppress blanks left by blank fields. k2swan Mailmerge 1 November 18th 05 09:41 PM
How do I suppress blank lines in a table in Word 2000? mauitom Mailmerge 1 June 24th 05 09:00 AM
In Word 2002, how do I suppress blank lines in an address? geller Mailmerge 1 February 2nd 05 05:50 AM
How to suppress blank lines at top of page Geoff Page Layout 1 December 14th 04 10:11 PM


All times are GMT +1. The time now is 08:07 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"