A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word Templates Remove



 
 
Thread Tools Display Modes
  #1  
Old December 20th, 2004, 02:45 PM
Timo
external usenet poster
 
Posts: n/a
Default Word Templates Remove

Hi there,

I have a troulbe to remove a template from my documents. In the newsgroup
was written to set .AttachedTemplate = "" would work but this works only
within Word as a macro.
I write a vbscript in which was possible to set the attachedTemplate. To
read all templates and remove macros. But it was not possible to remove the
written text within the textbox Tools - Templates and Add-ins - Document
Template.

I have found when I list all templates from my document. So I would like to
remove the found template like to remove add ins (...Add-Ins(index).delete).
Can anyone help?

Regards
Timo


  #2  
Old December 20th, 2004, 10:43 PM
Klaus Linke
external usenet poster
 
Posts: n/a
Default

Hi Timo,

If .AttachedTemplate = "" doesn't work, have you tried if setting
..AttachedTemplate to Normal.dot works?
Or maybe it's a matter of having the right references to libraries?

I've never used VBScript... If nobody here knows the answer, maybe you could ask
in microsoft.public.scripting.vbscript.

Regards,
Klaus


  #3  
Old December 21st, 2004, 08:11 AM
Timo
external usenet poster
 
Posts: n/a
Default

Yes I tried that.

Greetings
Timo

"Klaus Linke" wrote:

Hi Timo,

If .AttachedTemplate = "" doesn't work, have you tried if setting
..AttachedTemplate to Normal.dot works?
Or maybe it's a matter of having the right references to libraries?

I've never used VBScript... If nobody here knows the answer, maybe you could ask
in microsoft.public.scripting.vbscript.

Regards,
Klaus



  #4  
Old December 21st, 2004, 08:15 AM
Timo
external usenet poster
 
Posts: n/a
Default

.... Well I should say that works but the path in the textbox did not removed.
The attachedTamplate property returns the correct template but if you look on
the textbox the old template is written on. As well the template (which I
want to remove) is within the templates property from word.
Confusing. So may I can remove templates? But I do not know how.

Grettings
Timo

"Klaus Linke" wrote:

Hi Timo,

If .AttachedTemplate = "" doesn't work, have you tried if setting
..AttachedTemplate to Normal.dot works?
Or maybe it's a matter of having the right references to libraries?

I've never used VBScript... If nobody here knows the answer, maybe you could ask
in microsoft.public.scripting.vbscript.

Regards,
Klaus



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
wordperfect documents to word General Discussion 3 September 6th, 2004 03:17 AM
Word 2000/2002 - Proper Mail Merge steps for ODBC? Tony_VBACoder Mailmerge 7 September 2nd, 2004 09:21 PM
Word Perfect Macros to Word 2K or 2003 RichNRockvilleMD General Discussion 2 July 22nd, 2004 05:40 PM
Word 2000 DDE Speed Stefan German General Discussion 0 May 17th, 2004 04:14 PM
word error mac General Discussions 1 May 6th, 2004 08:14 AM


All times are GMT +1. The time now is 01:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.