Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Distribute XLT - don't want to do it individually on each machine

Hello -

I have a document that should be distributed as a template document on
individual machines which will go on C:\Documents and
Settings\Administrator\Application Data\Microsoft\Templates\DocumentName.xlt.

I don't want to have to manually put it on each machine. Is there a
textbook example of how to do this in code? I could email them a document
that has a button on it that will save the template when they click it, but
then each time an instance of a template is loaded, the button will be there
again. I know I am not thinking this through correctly, but it's getting
late . . .

Any help will be greatly appreciated!
--
Sandy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default Distribute XLT - don't want to do it individually on each machine


you can make a Install file and copy DocumentName.xlt to Excel Templates path

try,

SourceFile = Application.TemplatesPath & "\DocumentName.xlt"
DestinationFile = ThisWorkbook.Path & "\DocumentName.xlt"
FileCopy SourceFile, DestinationFile


--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Sandy" wrote:

Hello -

I have a document that should be distributed as a template document on
individual machines which will go on C:\Documents and
Settings\Administrator\Application Data\Microsoft\Templates\DocumentName.xlt.

I don't want to have to manually put it on each machine. Is there a
textbook example of how to do this in code? I could email them a document
that has a button on it that will save the template when they click it, but
then each time an instance of a template is loaded, the button will be there
again. I know I am not thinking this through correctly, but it's getting
late . . .

Any help will be greatly appreciated!
--
Sandy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Distribute XLT - don't want to do it individually on each mach

Hi Chijanzen:

Thanks for your response. What do you mean by "make an install file"? Can
you be more specific?

Thanks.
--
Sandy


"chijanzen" wrote:


you can make a Install file and copy DocumentName.xlt to Excel Templates path

try,

SourceFile = Application.TemplatesPath & "\DocumentName.xlt"
DestinationFile = ThisWorkbook.Path & "\DocumentName.xlt"
FileCopy SourceFile, DestinationFile


--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Sandy" wrote:

Hello -

I have a document that should be distributed as a template document on
individual machines which will go on C:\Documents and
Settings\Administrator\Application Data\Microsoft\Templates\DocumentName.xlt.

I don't want to have to manually put it on each machine. Is there a
textbook example of how to do this in code? I could email them a document
that has a button on it that will save the template when they click it, but
then each time an instance of a template is loaded, the button will be there
again. I know I am not thinking this through correctly, but it's getting
late . . .

Any help will be greatly appreciated!
--
Sandy

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Distribute XLT - don't want to do it individually on each machine

Sandy,
If everyone is on the same network, you can ensure that their Office setting
"Workgroup Templates" points to a common location, then these template will
appear (along with local templates) when the select New..

Whilst Excel does not expose this setting (for some reason) other Office
components do.
So you can automate Word or make the necessary registry changes directly.

NickHK

"Sandy" wrote in message
...
Hello -

I have a document that should be distributed as a template document on
individual machines which will go on C:\Documents and
Settings\Administrator\Application

Data\Microsoft\Templates\DocumentName.xlt.

I don't want to have to manually put it on each machine. Is there a
textbook example of how to do this in code? I could email them a document
that has a button on it that will save the template when they click it,

but
then each time an instance of a template is loaded, the button will be

there
again. I know I am not thinking this through correctly, but it's getting
late . . .

Any help will be greatly appreciated!
--
Sandy



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Distribute XLT - don't want to do it individually on each mach

Hi Nick -

Thanks for responding! That would still entail setting a path on each
machine, wouldn't it?

--
Sandy


"NickHK" wrote:

Sandy,
If everyone is on the same network, you can ensure that their Office setting
"Workgroup Templates" points to a common location, then these template will
appear (along with local templates) when the select New..

Whilst Excel does not expose this setting (for some reason) other Office
components do.
So you can automate Word or make the necessary registry changes directly.

NickHK

"Sandy" wrote in message
...
Hello -

I have a document that should be distributed as a template document on
individual machines which will go on C:\Documents and
Settings\Administrator\Application

Data\Microsoft\Templates\DocumentName.xlt.

I don't want to have to manually put it on each machine. Is there a
textbook example of how to do this in code? I could email them a document
that has a button on it that will save the template when they click it,

but
then each time an instance of a template is loaded, the button will be

there
again. I know I am not thinking this through correctly, but it's getting
late . . .

Any help will be greatly appreciated!
--
Sandy






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Distribute XLT - don't want to do it individually on each mach

Sandy,
Yes, but it's a one-off change.
Whatever method you choose, you have to contact/edit/change something at
least once.

If you edit the registry:
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Co mmon\General\SharedTemplat
es

no user interaction is required.
Then any update to the template just means you have to replace it at one
location.

NickHK

"Sandy" wrote in message
...
Hi Nick -

Thanks for responding! That would still entail setting a path on each
machine, wouldn't it?

--
Sandy


"NickHK" wrote:

Sandy,
If everyone is on the same network, you can ensure that their Office

setting
"Workgroup Templates" points to a common location, then these template

will
appear (along with local templates) when the select New..

Whilst Excel does not expose this setting (for some reason) other Office
components do.
So you can automate Word or make the necessary registry changes

directly.

NickHK

"Sandy" wrote in message
...
Hello -

I have a document that should be distributed as a template document on
individual machines which will go on C:\Documents and
Settings\Administrator\Application

Data\Microsoft\Templates\DocumentName.xlt.

I don't want to have to manually put it on each machine. Is there a
textbook example of how to do this in code? I could email them a

document
that has a button on it that will save the template when they click

it,
but
then each time an instance of a template is loaded, the button will be

there
again. I know I am not thinking this through correctly, but it's

getting
late . . .

Any help will be greatly appreciated!
--
Sandy






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 can i see all column sizes at once not individually? Mary Lou Excel Discussion (Misc queries) 1 November 14th 07 07:55 PM
How do I print comments individually? SNC MHORON Excel Worksheet Functions 1 July 27th 07 06:36 PM
Reference & update destin. cells on 1st machine from source workbook on 2nd machine. [email protected] Excel Discussion (Misc queries) 6 February 28th 06 05:15 AM
Listing consecutive days without inputting each one individually jcrouse Charts and Charting in Excel 1 February 8th 05 02:18 PM
Sorting each row individually yaghani Excel Programming 3 June 11th 04 03:28 AM


All times are GMT +1. The time now is 07:43 AM.

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

About Us

"It's about Microsoft Excel"