#1
|
|||
|
|||
Cannot select my custom tab when new document is opened
I have created a template for a user form with a custom menu in the 'Add-Ins' ribbon tab. The user starts by double clicking the '.dotm', MS Word uses the template to create Document1 and code selects the first field. So-far, so-good. But, I would like the Add-Ins Tab to be selected when that happens.
I have tried SendKeys and the SwitchTab (accessability) routine to no avail. Through debugging, I have noticed that when Word first creates Document1, the Ribbon doesn't have 'Add-Ins', 'Design' or 'Layout' tabs until my code has COMPLETED the 'Document_New' event, then those three tabs appear. So I think that is why neither method works, because the tabs aren't there. Does anyone have an answer or suggestion? |
Tags |
add-ins, customize menu, form template |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Template is not recognised when opened by double click. Creates new document. | stevewak | Word | 8 | 03-19-2014 05:12 AM |
Select statement to a new document | ishaw | Word | 1 | 10-17-2011 02:23 AM |
Table of Contents does not update, when document is opened on other computer | jaybo | Word | 1 | 01-25-2011 04:56 PM |
Programmatically get File Path for currently opened WORD document | franferns | Word | 1 | 11-26-2009 12:36 PM |
Select printer to document | JosL | Office | 3 | 03-07-2009 12:40 PM |