Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Removal of templates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Davor - 10 Nov 2004 11:33 GMT
Is it possible to remove (uninstall) advertised templates (templates that was
installed  with Office, like: "Elegant fax", "Elegant Letter", etc... ) from
computer using VBA?
I would like to remove them from "templates" dialog ("File"->"New...").
I know that it can be done through Office setup application, but how to
automate this because I have to do it on 200+ computers in our network.
Pete Bennett - 10 Nov 2004 15:34 GMT
These templates are usually the ones stored inside the "1033" folder.

You should be able to do something like this:

Sub DelTemplates
Dim sPath as String
Dim sName as String

sPath="C:\Program Files\Microsoft Office\Office\Templates\1033\"

sName = Dir (sPath & "*.dot")

While Len(sName) > 0
   Kill sPath & sName
   sName = Dir()
Wend

End Sub

Alternatively, if you don't want to actually delete the templates, you can
hide them from the "New Document" screen by just applying the "Hidden" flag.  
You can still create documents from Hidden templates using VBA (Document.Add
Template:="Hidden Template.Dot").

> Is it possible to remove (uninstall) advertised templates (templates that was
> installed  with Office, like: "Elegant fax", "Elegant Letter", etc... ) from
> computer using VBA?
> I would like to remove them from "templates" dialog ("File"->"New...").
> I know that it can be done through Office setup application, but how to
> automate this because I have to do it on 200+ computers in our network.
Davor - 10 Nov 2004 16:08 GMT
I already tried that, but no luck.
When you delete templates in that folder ( or "hide" them) they still can be
seen on "File->New..." dialog. Interesting, if view is set to "Details", file
length  for each deleted template is 0 KB ?!

> These templates are usually the ones stored inside the "1033" folder.
>
[quoted text clipped - 26 lines]
> > I know that it can be done through Office setup application, but how to
> > automate this because I have to do it on 200+ computers in our network.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.