DetroitDavid
Board Regular
- Joined
- Jul 20, 2013
- Messages
- 211
I have a template in word, saved as Hort.dotm
Whenever I launch this a File > New > My Templates > Hort dotm, I’d like to open a custom dialog (which I can see how to do in many places on the web).
I need to find a good beginners tutorial on creating elements into this new dialog, storing the input, conditionally using the value to insert text (pre-formatted blocks?) in specific places in the document, then launching the File > SaveAs dialog with a filename derived from two of the variables and the date.
E.g. one variable example would be strLastName; so the new file would
Can anyone point me to a good tutorial on this?
TIA - DD
Whenever I launch this a File > New > My Templates > Hort dotm, I’d like to open a custom dialog (which I can see how to do in many places on the web).
I need to find a good beginners tutorial on creating elements into this new dialog, storing the input, conditionally using the value to insert text (pre-formatted blocks?) in specific places in the document, then launching the File > SaveAs dialog with a filename derived from two of the variables and the date.
E.g. one variable example would be strLastName; so the new file would
- Open (document1.docx)
- Launch dialog
- Collect information
- Store these values as variables in code
- Fill-in the document with variable text at specific bookmarks
- Launch SaveAs with the default set to a specific path, and a suggested filename like:
- strLastName & “ – “ & Address & strAddress2 & “MI”
- DetroitDavid – 3033 Harrison Ave Trenton MI
Can anyone point me to a good tutorial on this?
TIA - DD