MS Office and VBA
This category holds articles regarding general things in MS Office VBA independent from the MS Office application.
In case you need the temp directory on a Windows machine in VBA, the following method might do the trick for you.
It looks up the TMP or TEMP system environment variable.
- Hits: 3081
Ever since I am working in roles providing technical support for Identity and Access Governance, I am often confronted with the need of printing and archiving a lot of mails for audit trail.
I do despite this task not only because it is annoying but also because there are much better ways for documenting audit proof history than using a document based system.
Anyway ... Since this task is annoying I wrote a little script in VBA to print all selected emails.
This will go into a class called PdfPrinter. It utilizes MS Word in order to print /convert emails to PDF.
Utilizing MS Word is not the best option since the other Application has to be handled properly in order to close Word properly after the job is done. Else you are facing lost references and the application stays open in RAM and the user does not even see it is still running.
- Hits: 2673
Page 4 of 4