Iamrickdeans
Registered User.
- Local time
- Today, 12:12
- Joined
- Apr 8, 2013
- Messages
- 29
:banghead:I thank you all in advance for any help you can provide me, I am looking to perform a mail merge from access to Publisher. I have linked everything together and got everything looking the way that I want it to look however...
What I want to do is when I perform the mail merge I would like publisher to save a copy of each individual record from the database as a specific file based on one field of the mail merge.
I will try to clarify...
One of the mail merge fields is ClientAccountNumber I would like the merge to save a copy of the publisher file into c:\mailmerge as a PDF including the year 2014.
So this file(s)for example would look like
C:\mailmerge\123456 - 2014.pdf C:\mailmerge\123457 - 2014.pdf etc...
Does anyone know if this is possible and if so how I would go about it?
Regards
Richard
I need help with solving this absolutely baffled, confounded and almost delusional!!!!
Please please help I will provide as much detail as any needs if you can help me with this and will clarify any point or information required. I am at the limit of my knowledge with this one.
What I want to do is when I perform the mail merge I would like publisher to save a copy of each individual record from the database as a specific file based on one field of the mail merge.
I will try to clarify...
One of the mail merge fields is ClientAccountNumber I would like the merge to save a copy of the publisher file into c:\mailmerge as a PDF including the year 2014.
So this file(s)for example would look like
C:\mailmerge\123456 - 2014.pdf C:\mailmerge\123457 - 2014.pdf etc...
Does anyone know if this is possible and if so how I would go about it?
Regards
Richard
Code:
Sub MailMerge()
'
' Macro1 Macro
Dim TempDocCreate
Dim FileNameTemp As MailMergeDataField
Set FileNameTemp = Application.ActiveDocument.MailMerge.DataSource.DataFields.Item("Box 22 Rcp Acct No")
With ActiveDocument.MailMerge.DataSource
Application.ActiveDocument.ExportAsFixedFormat pbFixedFormatTypePDF, Filename:= _
"L:\Operations Database\Projects\1042\PublisherPDF\2011 Merge\" & "FileNameTemp" & " - 2011" & ".pdf"
End With
I need help with solving this absolutely baffled, confounded and almost delusional!!!!
Please please help I will provide as much detail as any needs if you can help me with this and will clarify any point or information required. I am at the limit of my knowledge with this one.