#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Macro

how can I move all the macro code to one single location from the excel
template. Basically this what i need to accomplish.
Currently my excel template has all the codes/macros .
Everytime I change the macro code, I need to send out the new
template to everyone on the group as a new version.
Is there a way where i can simply change my macro code in one
location, and template always look at this place..

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Excel Macro

If everyone sets their "Workgroup Templates" to the same path, then they
will see the same single version of your template each time. This is an
Office wide setting.
Whilst this setting is available in the WordToolsOptionsFile Locations,
bizarrely it's not included in Excel's Options.
You can either set from Word or in code with:
Application.NetworkTemplatesPath=YourNetworkPathTo TemplateFolder

Or possible add/edit the registry value of SharedTemplates at
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Co mmon\General

All this assume all your users are on a network where they can all see the
same folder somewhere.

NickHK

wrote in message
oups.com...
how can I move all the macro code to one single location from the excel
template. Basically this what i need to accomplish.
Currently my excel template has all the codes/macros .
Everytime I change the macro code, I need to send out the new
template to everyone on the group as a new version.
Is there a way where i can simply change my macro code in one
location, and template always look at this place..



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default Excel Macro

Hi,

Do you mean move or copy the codes...
if you just want to copy why you dont use export code module ?
like this:
Sub exportmodule()
ThisWorkbook.VBProject.VBComponents _
("module1").Export "C:\ExportedFile.bas"
End Sub

look at c:\

tks
Halim

NickHK menuliskan:
If everyone sets their "Workgroup Templates" to the same path, then they
will see the same single version of your template each time. This is an
Office wide setting.
Whilst this setting is available in the WordToolsOptionsFile Locations,
bizarrely it's not included in Excel's Options.
You can either set from Word or in code with:
Application.NetworkTemplatesPath=YourNetworkPathTo TemplateFolder

Or possible add/edit the registry value of SharedTemplates at
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Co mmon\General

All this assume all your users are on a network where they can all see the
same folder somewhere.

NickHK

wrote in message
oups.com...
how can I move all the macro code to one single location from the excel
template. Basically this what i need to accomplish.
Currently my excel template has all the codes/macros .
Everytime I change the macro code, I need to send out the new
template to everyone on the group as a new version.
Is there a way where i can simply change my macro code in one
location, and template always look at this place..


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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
Need syntax for RUNning a Word macro with an argument, called from an Excel macro Steve[_84_] Excel Programming 3 July 6th 06 07:42 PM
translate lotus 1-2-3 macro into excel macro using excel 2000 krutledge0209 Excel Programming 1 November 2nd 04 05:50 PM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM


All times are GMT +1. The time now is 05:12 PM.

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

About Us

"It's about Microsoft Excel"