Du skal nok have fat i MailMerge, her er lidt fra Online Help:
Using the MailMerge Object
Use the MailMerge property to return the MailMerge object. The MailMerge object is always available regardless of whether the mail merge operation has begun. Use the State property to determine the status of the mail merge operation. The following example executes a mail merge if the active document is a main document with an attached data source.
If ActiveDocument.MailMerge.State = wdMainAndDataSource Then ActiveDocument.MailMerge.Execute End If
The following example merges the main document with the first three data records in the attached data source and then sends the results to the printer.
Set myMerge = ActiveDocument.MailMerge If myMerge.State = wdMainAndSourceAndHeader Or _ myMerge.State = wdMainAndDataSource Then With myMerge.DataSource .FirstRecord = 1 .LastRecord = 3 End With End If With myMerge .Destination = wdSendToPrinter .Execute End With
Det med at optage makro i word/excell eller hvad man nu arbejder med i office familen , er svaret , så finder man bare koden i makroen og der fra er der ikke langt til målet.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.