How to remove recently used template

J

James Wang

Hi,

We created our own templates for user to create new document when our
add-in is enabled.

When user creates a new Word document through our template, the
template is shown in "Recently used templates" section of the new task
pane. I would like to disable it from showing there or remove it in
Word quit event because when Word starts next time, our add-in may not
be enabled.

Application.NewDocument.Remove( ) method can only remove the template
added through Application.NewDocument.Add( ) method, it cannot remove
the templates automatically added by Word.

Any one knows how to do it?

Thanks.
 
C

Cindy M.

Hi James,
We created our own templates for user to create new document when our
add-in is enabled.

When user creates a new Word document through our template, the
template is shown in "Recently used templates" section of the new task
pane. I would like to disable it from showing there or remove it in
Word quit event because when Word starts next time, our add-in may not
be enabled.

Application.NewDocument.Remove( ) method can only remove the template
added through Application.NewDocument.Add( ) method, it cannot remove
the templates automatically added by Word.
Which version of Word are we discussing?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
C

Cindy M.

Hi James,
We are working on both Word 2003 and XP.
See this article for details. I'm not sure whether
NewDocument.Remove lets you remove entries created by Word,
based on user actions (been too long since I played with
this).

http://word.mvps.org/faqs/macrosvba/taskpanesreferenceconte
nt.htm

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top