Hi All,
I'm a bit embarrassed to say that I am a newbie to VBA.
I did some experimenting to adjust a macro I found on the internet to work for me, but so far I get some errors I don't know how to fix.
So, What do I want the macro to do for me? I have an excelfile that serves as a distribution list for a word document (both are attached).
Thinks like customer name, date serious occupational accident (SOA), victim name, (sorry the file itself is in dutch) are copied into the word document. The footer of the word document is compiled of all these things and some text: EAO «datum_EAO»«slachtoffer» «Klant_» «dossiernr» - Luik A or in English: SOA «date_SOA»«victim» «Customer_» «dossier nr» - Part A
Now I would like to save my word document as a pdf with that footer as the document name.
I have already inserted the macro in the word document, but I get an error that is related to .datasource.
Bezoeken 2017 EAO MadelienMues.xlsxEAO datum bedrijf slachtoffer Luik A.docm
Who can please help me? Thank you very much in advance