A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word 2000 Macro not working properly w/merge



 
 
Thread Tools Display Modes
  #1  
Old July 1st, 2009, 02:16 PM posted to microsoft.public.word.mailmerge.fields
Brian
external usenet poster
 
Posts: 1,396
Default Word 2000 Macro not working properly w/merge

I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but not
on the second page?
  #2  
Old July 1st, 2009, 10:17 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Word 2000 Macro not working properly w/merge

See the article “Combining FormFields and Mail Merge” on the following page
of fellow MVP Graham Mayor’s website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider contributing to the
maintenance of that website to ensure its continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but
not
on the second page?


  #3  
Old July 2nd, 2009, 02:02 PM posted to microsoft.public.word.mailmerge.fields
Brian
external usenet poster
 
Posts: 1,396
Default Word 2000 Macro not working properly w/merge

the code in that link doesn't work, I'm getting some complier errors, and I'm
not very familiar w/programming to try to fix it.

"Doug Robbins - Word MVP" wrote:

See the article “Combining FormFields and Mail Merge” on the following page
of fellow MVP Graham Mayor’s website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider contributing to the
maintenance of that website to ensure its continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but
not
on the second page?



  #4  
Old July 2nd, 2009, 02:02 PM posted to microsoft.public.word.mailmerge.fields
Brian
external usenet poster
 
Posts: 1,396
Default Word 2000 Macro not working properly w/merge

the code in that link doesn't work, I'm getting some complier errors, and I'm
not very familiar w/programming to try to fix it.


"Doug Robbins - Word MVP" wrote:

See the article “Combining FormFields and Mail Merge” on the following page
of fellow MVP Graham Mayor’s website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider contributing to the
maintenance of that website to ensure its continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but
not
on the second page?



  #5  
Old July 2nd, 2009, 02:11 PM posted to microsoft.public.word.mailmerge.fields
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Word 2000 Macro not working properly w/merge

The compiler errors are probably attributable to the line

'Requires a reference to Microsoft DAO 3.# Object Library

From the VBA Editor Tools References, ensure that the above item is
checked.
See also http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Brian wrote:
the code in that link doesn't work, I'm getting some complier errors,
and I'm not very familiar w/programming to try to fix it.

"Doug Robbins - Word MVP" wrote:

See the article "Combining FormFields and Mail Merge" on the
following page of fellow MVP Graham Mayor's website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider
contributing to the maintenance of that website to ensure its
continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that
aren't merging, so I looked for help and found this macro on MS
support that's suppose to fix it and have the merge retain any text
fields. http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it
leaves the place holders. The doc is only two pages after the
merge, 3 before the merge, anyone know why the it creates text
fields on the first page, but not
on the second page?



  #6  
Old July 2nd, 2009, 09:56 PM posted to microsoft.public.word.mailmerge.fields
Brian
external usenet poster
 
Posts: 1,396
Default Word 2000 Macro not working properly w/merge

I'm getting an error in this line of code, states it's undefined
Code:
Dim fDialog As FileDialog
"Brian" wrote:

the code in that link doesn't work, I'm getting some complier errors, and I'm
not very familiar w/programming to try to fix it.


"Doug Robbins - Word MVP" wrote:

See the article “Combining FormFields and Mail Merge” on the following page
of fellow MVP Graham Mayor’s website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider contributing to the
maintenance of that website to ensure its continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but
not
on the second page?



  #7  
Old July 2nd, 2009, 09:57 PM posted to microsoft.public.word.mailmerge.fields
Brian
external usenet poster
 
Posts: 1,396
Default Word 2000 Macro not working properly w/merge

I'm getting an error in this line of code, states it's undefined
Code:
Dim fDialog As FileDialog

"Brian" wrote:

the code in that link doesn't work, I'm getting some complier errors, and I'm
not very familiar w/programming to try to fix it.


"Doug Robbins - Word MVP" wrote:

See the article “Combining FormFields and Mail Merge” on the following page
of fellow MVP Graham Mayor’s website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider contributing to the
maintenance of that website to ensure its continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but
not
on the second page?



  #8  
Old July 6th, 2009, 03:01 PM posted to microsoft.public.word.mailmerge.fields
Brian
external usenet poster
 
Posts: 1,396
Default Word 2000 Macro not working properly w/merge

here is where i get the error user defined type not definted
Dim fDialog As FileDialog

"Brian" wrote:

I'm getting an error in this line of code, states it's undefined
Code:
Dim fDialog As FileDialog


"Brian" wrote:

the code in that link doesn't work, I'm getting some complier errors, and I'm
not very familiar w/programming to try to fix it.


"Doug Robbins - Word MVP" wrote:

See the article “Combining FormFields and Mail Merge” on the following page
of fellow MVP Graham Mayor’s website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider contributing to the
maintenance of that website to ensure its continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that aren't
merging, so I looked for help and found this macro on MS support that's
suppose to fix it and have the merge retain any text fields.
http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc it leaves
the place holders. The doc is only two pages after the merge, 3 before the
merge, anyone know why the it creates text fields on the first page, but
not
on the second page?


  #9  
Old July 6th, 2009, 03:28 PM posted to microsoft.public.word.mailmerge.fields
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Word 2000 Macro not working properly w/merge

I believe that this function was introduced with Word 2002. You can by-pass
it by changing the lines

Dim fDialog As FileDialog

Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
sPassword = "" 'insert form password, if applicable, between quotes
With fDialog
.Title = "Select Folder to store the documents and click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
DocDir = fDialog.SelectedItems.Item(1)
If Right(DocDir, 1) "\" Then DocDir = DocDir + "\"
End With

for

DocDir = "c:\path\"

where C:\Path is the folder that you would have selected had you been able
to

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Brian wrote:
here is where i get the error user defined type not definted
Dim fDialog As FileDialog

"Brian" wrote:

I'm getting an error in this line of code, states it's undefined
Code:
Dim fDialog As FileDialog


"Brian" wrote:

the code in that link doesn't work, I'm getting some complier
errors, and I'm not very familiar w/programming to try to fix it.


"Doug Robbins - Word MVP" wrote:

See the article "Combining FormFields and Mail Merge" on the
following page of fellow MVP Graham Mayor's website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider
contributing to the maintenance of that website to ensure its
continued availability.


--
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, originally posted via msnews.microsoft.com
"Brian" wrote in message
...
I'm creating a word merge into a new doc. I have text fields that
aren't merging, so I looked for help and found this macro on MS
support that's suppose to fix it and have the merge retain any
text fields. http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc
it leaves the place holders. The doc is only two pages after the
merge, 3 before the merge, anyone know why the it creates text
fields on the first page, but not
on the second page?



  #10  
Old July 6th, 2009, 03:35 PM posted to microsoft.public.word.mailmerge.fields
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Word 2000 Macro not working properly w/merge

Oops! You'll need to retain the line
sPassword = "" 'insert form password, if applicable, between quotes

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Graham Mayor wrote:
I believe that this function was introduced with Word 2002. You can
by-pass it by changing the lines

Dim fDialog As FileDialog

Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
sPassword = "" 'insert form password, if applicable, between quotes
With fDialog
.Title = "Select Folder to store the documents and click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show -1 Then
MsgBox "Cancelled By User"
Exit Sub
End If
DocDir = fDialog.SelectedItems.Item(1)
If Right(DocDir, 1) "\" Then DocDir = DocDir + "\"
End With

for

DocDir = "c:\path\"

where C:\Path is the folder that you would have selected had you been
able to


Brian wrote:
here is where i get the error user defined type not definted
Dim fDialog As FileDialog

"Brian" wrote:

I'm getting an error in this line of code, states it's undefined
Code:
Dim fDialog As FileDialog


"Brian" wrote:

the code in that link doesn't work, I'm getting some complier
errors, and I'm not very familiar w/programming to try to fix it.


"Doug Robbins - Word MVP" wrote:

See the article "Combining FormFields and Mail Merge" on the
following page of fellow MVP Graham Mayor's website:

http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

If that information is of use to you, please do consider
contributing to the maintenance of that website to ensure its
continued availability.


--
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, originally posted via
msnews.microsoft.com "Brian"
wrote in message
...
I'm creating a word merge into a new doc. I have text fields that
aren't merging, so I looked for help and found this macro on MS
support that's suppose to fix it and have the merge retain any
text fields. http://support.microsoft.com/kb/211308/
I put it all in, and it works except on the 2nd page of the doc
it leaves the place holders. The doc is only two pages after the
merge, 3 before the merge, anyone know why the it creates text
fields on the first page, but not
on the second page?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.