![]() |
#1
|
|||
|
|||
![]() Greetings all. I'm new to this forum and pretty new to Word macro programming to please bear with me... I have developed a custom macro-enabled building blocks template ("MyBuildingBlocks") which, in addition to various standard document components, includes a number of userforms which are designed to guide the user to insert the correct building block to start his document with;
Referring to various articles online, I have created a macro ("CallUF_TemplateOptions") within a module ("modTemplateOptions") in MyBuildingBlocks with which I can successfully call up the primary userform. This then correctly takes me through my selection options and inserts the required building block. If I start Word and manually call up the primary userform using this macro, everything seems to work fine. My problem is that I want the primary userform to flash up automatically every time I create a new document (i.e. open word for the first time as it is set to open a new doc automatically, or press Ctrl +N, click on the New Document icon on the QAT, etc). I do not want it to come up if I open up an existing document (either when I chose file/open from within word, or if I right-click on the Word icon in the start bar and then choose an existing document). I've managed to get halfway there by adding some code to a public AutoExec sub in a second module ("modLaunchPrimaryForm"). This successfully calls up the form when I first open word, but:
I suspect this is really simple if you know what you're doing - which I clearly don't - so any pointers to help me get on the right track would be much appreciated. |
Tags |
autoexec, userform |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
export UserForm created strings to generated Document from template | Trainee | Word VBA | 2 | 09-13-2017 02:29 AM |
![]() |
rpb925 | Word VBA | 12 | 03-31-2016 03:14 AM |
Adding tables to Created word document whilst other word document open Help | rpb925 | Word VBA | 18 | 03-30-2016 04:45 PM |
Insert an image to a document created by a userform? | jgoodrich | Word VBA | 0 | 10-22-2014 11:03 AM |
![]() |
BoringDavid | Word VBA | 5 | 05-09-2014 09:08 AM |