#1
|
|||
|
|||
doc name according merged data
I have a document in which i am merging data from a database. each record merged from the database has a unique primary key.
After mail merging a record into the document. I would like to save the document with a particular filename/format (docname.primarykey.doc e.g. Meeting.0321.doc). Although, this can be done manually each time I merge data, it is time consuming and increases the possibility of the user making mistakes. Therefore, I would like this to happen automatically every time i print the document with merged record data (a record will only be printed once in a particular document). I have a rough idea of how to solve this problem. This is by using vb script (creating a command button). But i cant seem to work out how to assign merged data (of a particular record and field) to a variable. this is because i've never really worked with merged data using VB. if i can do this i think ill be able to solve the rest. I hope what i have explained above is clear enough. I thank you all very much in advance. Your help is appreciated. Last edited by dellv1510; 09-12-2010 at 05:51 PM. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Continuous page numbering in a merged document | dkeinath | Mail Merge | 0 | 07-30-2010 09:30 AM |
No toggle b/w 2 accounts; mail merged in 1 inbox | Windwardman | Outlook | 1 | 06-09-2010 09:25 AM |
How do I reference a merged cell in a multi column & row table in MS Word ('03')? | jihanemo | Word Tables | 0 | 03-18-2009 08:33 AM |