#1   Report Post  
Old March 12th 08, 08:34 AM posted to microsoft.public.excel.setup
external usenet poster
 
First recorded activity by ExcelBanter: Jan 2008
Posts: 4
Default modify template

i know how to modify the template location on a single computer, but i wanted
do it on several computers

have someone a vbs script to do it ?

thanks
--
nt

  #2   Report Post  
Old March 12th 08, 10:16 AM posted to microsoft.public.excel.setup
external usenet poster
 
First recorded activity by ExcelBanter: Jan 2008
Posts: 4
Default modify template

i was searching since a few days and finally after posting i found the solution


so i give you the code

On Error Resume Next
Const wdAutoRecoverPath = 5
Const wdBorderArtPath = 19
Const wdCurrentFolderPath = 14
Const wdDocumentsPath = 0
Const wdGraphicsFiltersPath = 10
Const wdPicturesPath = 1
Const wdProgramsPath = 9
Const wdProofingToolsPath = 12
Const wdStartupPath = 8
Const wdStyleGalleryPath = 15
Const wdTempFilesPath = 13
Const wdTextConvertersPath = 11
Const wdToolsPath = 6
Const wdTutorialPath = 7
Const wdUserOptionsPath = 4
Const wdUserTemplatesPath = 2
Const wdWorkgroupTemplatesPath = 3

Set objWord = CreateObject("Word.Application")
Set objOptions = objWord.Options
objOptions.DefaultFilePath(wdUserTemplatesPath) = "C:\testmodele3"
msgbox ("opération terminées")
objWord.Quit
--
nt


"nicolas29" wrote:

i know how to modify the template location on a single computer, but i wanted
do it on several computers

have someone a vbs script to do it ?

thanks
--
nt



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I modify a downloaded template in Excel cdefen Excel Discussion (Misc queries) 2 August 7th 07 06:08 AM
How do I modify expense template to fit my needs? Cal Thompson New Users to Excel 2 July 21st 06 07:41 PM
modify a template that is protected sphoenix Excel Worksheet Functions 4 May 25th 06 02:45 AM
How do I modify the sales invoice template? Caljac Excel Discussion (Misc queries) 1 November 17th 05 04:30 PM
Can I modify the NCAA bracket with tracker template for a 3 state. Tennis Diva Excel Discussion (Misc queries) 0 August 8th 05 04:57 PM


All times are GMT +1. The time now is 09:06 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright ©2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017