![]() |
#1
|
|||
|
|||
![]()
I'm looking to include a merge field that pics up a Windows user's signature based on their login name and whilst I've got a macro to pick up the username and replace the @@WinUsername@@ bit.
It's working if the user's signature file exists but it produces an "A field calculation error occurred in record 1" if the file doesn't exist and it's looking to display the default.docx file. It then includes the default.docx file as required. Just looking to get rid of the error message. So, inspite of my ramblings I'd like to inclde a file if it exists and if it doesn't to include a default file instead of the Error file not found message. Is this possible. Below is my work in progress {IF { INCLUDETEXT "Q:\\Letters\\Signatures\\@@WinUsername@@.docx "} ="Error*" { INCLUDETEXT "Q:\\Letters\\Signatures\\default.docx"} { INCLUDETEXT "Q:\\Letters\\Signatures\\@@WinUsername@@.docx "} } Thanks in advance |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy and paste file but folder doesn't update | Haha88 | Windows | 2 | 09-24-2015 09:54 AM |
![]() |
kwstewart | Mail Merge | 3 | 08-17-2015 09:04 AM |
A text box (active X) control doesn't work on reopening the file | Chris Baker | PowerPoint | 1 | 06-07-2013 05:51 AM |
![]() |
Jamal NUMAN | Word | 4 | 07-01-2011 06:27 PM |
[PowerPoint 2010] Change font for all slides in an exist *.PPTX file | LongTTH | PowerPoint | 0 | 12-15-2010 02:07 AM |