Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Walter Briscoe Walter Briscoe is offline
external usenet poster
 
Posts: 42
Default Fillin once fields sometimes filled in twice

I am using Word 2003 (11.6359.6360) SP1.

I am having trouble with a merge.

My main document has two { FILLIN "q" \d "d" \o } fields.

Fillin data is acquired in a successful ActiveDocument.Fields.Update.

ActiveDocument.MailMerge.DataSource.Name is unset until I use
ActiveDocument.MailMerge.OpenDataSource to link to a data source.

Dialogs(wdDialogMailMergeRecipients).Show selects the records to merge.

I would like to put a debug probe here but have yet to figure how. I
guess that .Show unintentionally alters ActiveDocument.MailMerge.Fields.

Moving ActiveDocument.Fields.Update to here results in some data being
filled in twice and some being unfilled.

If the number of merged records is more than 7, fillin data for both
fields is again requested during ActiveDocument.MailMerge.Execute.

When debugging, I do not find a Globals window analogous to the Locals
window. The Object Browser seems to deal with the structure of objects
but not object values. It is painful to construct a MsgBox call to show
the members of an object.
--
Walter Briscoe
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Walter Briscoe Walter Briscoe is offline
external usenet poster
 
Posts: 42
Default Fillin once fields sometimes filled in twice

In message of Thu, 6 Mar 2008
12:13:55 in microsoft.public.word.mailmerge.fields, Walter Briscoe
writes
I am using Word 2003 (11.6359.6360) SP1.

I am having trouble with a merge.

My main document has two { FILLIN "q" \d "d" \o } fields.

Fillin data is acquired in a successful ActiveDocument.Fields.Update.

ActiveDocument.MailMerge.DataSource.Name is unset until I use
ActiveDocument.MailMerge.OpenDataSource to link to a data source.

Dialogs(wdDialogMailMergeRecipients).Show selects the records to merge.

I would like to put a debug probe here but have yet to figure how. I
guess that .Show unintentionally alters ActiveDocument.MailMerge.Fields.

Moving ActiveDocument.Fields.Update to here results in some data being
filled in twice and some being unfilled.

If the number of merged records is more than 7, fillin data for both
fields is again requested during ActiveDocument.MailMerge.Execute.

When debugging, I do not find a Globals window analogous to the Locals
window. The Object Browser seems to deal with the structure of objects
but not object values. It is painful to construct a MsgBox call to show
the members of an object.


I found the following before the .execute call gave me a "fix".
It leaves me wanting an explanation. ;(
ActiveDocument.Fields(1).Unlink ' Stop Fillin going again
ActiveDocument.Fields(2).Unlink ' Stop Fillin going again
ActiveDocument.Fields(3).Unlink ' Stop Fillin going again

--
Walter Briscoe
Reply
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
Fillin fields in a table DianeG Microsoft Word Help 0 March 23rd 07 05:23 PM
'FILLIN' fields keep prompting. How to stop this once filled in? Mark Microsoft Word Help 6 October 30th 06 02:42 PM
Fillin Fields Marek Microsoft Word Help 3 March 1st 06 08:36 PM
Ask or Fillin Fields, I think Shloms Microsoft Word Help 1 April 12th 05 06:05 AM
Fillin fields Marianne Microsoft Word Help 1 April 9th 05 07:42 AM


All times are GMT +1. The time now is 06:32 PM.

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"