Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Macro to update other local macros

Hey Guys
I have made a report-system that collects som summaries from a set of
users. In each local user Excel-file there is a macro that does stuff.
Sometimes I have to update this "local" macro - and have to ask every
user to replace the macro update manually (copy/paste in VBA).
Its not that big effort, but it would be more "proffessional"
expression if I could send over an automatic update sort-of-macro by
mail.

The update macro
1) I -as administrator - will chose the name of the macro to be
updated
2) I send thr update to the user
2) The user chose the local receiving file from the explorer/open-file
manager
3) My macro updates the local macro by running this update macro

Is this possible and how do I do it?

Example

Local file Report.xlsm contains a macro UpdatePivotFields
__________________
Best Regards
Snoopy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Macro to update other local macros

On Jan 26, 11:33*am, Snoopy wrote:
Hey Guys
I have made a report-system that collects som summaries from a set of
users. In each local user Excel-file there is a macro that does stuff.
Sometimes I have to update this "local" macro - and have to ask every
user to replace the macro update manually (copy/paste in VBA).
Its not that big effort, but it would be more "proffessional"
expression if I could send over an automatic update sort-of-macro by
mail.

The update macro
1) I -as administrator - will chose the name of the macro to be
updated
2) I send thr update to the user
2) The user chose the local receiving file from the explorer/open-file
manager
3) My macro updates the local macro by running this update macro

Is this possible and how do I do it?

Example

Local file Report.xlsm contains a macro UpdatePivotFields
__________________
Best Regards
Snoopy


Have you considered putting all of the 'local' code into a single add-
in which is available to all. When changes are required simply reissue
the updated add-in to all of your users i.e. replace the whole file
rather than getting your users to cut/paste individual lines of code -
their workbooks remain untouched as long as the reissued add-in has
the same name as the previous version.

A.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Macro to update other local macros

On 26 Jan, 15:20, Alan wrote:
On Jan 26, 11:33*am, Snoopy wrote:





Hey Guys
I have made a report-system that collects som summaries from a set of
users. In each local user Excel-file there is a macro that does stuff.
Sometimes I have to update this "local" macro - and have to ask every
user to replace the macro update manually (copy/paste in VBA).
Its not that big effort, but it would be more "proffessional"
expression if I could send over an automatic update sort-of-macro by
mail.


The update macro
1) I -as administrator - will chose the name of the macro to be
updated
2) I send thr update to the user
2) The user chose the local receiving file from the explorer/open-file
manager
3) My macro updates the local macro by running this update macro


Is this possible and how do I do it?


Example


Local file Report.xlsm contains a macro UpdatePivotFields
__________________
Best Regards
Snoopy


Have you considered putting all of the 'local' code into a single add-
in which is available to all. When changes are required simply reissue
the updated add-in to all of your users i.e. replace the whole file
rather than getting your users to cut/paste individual lines of code -
their workbooks remain untouched as long as the reissued add-in has
the same name as the previous version.

A.– Skjul sitert tekst –

– Vis sitert tekst –


Hey - thanks! :)
Please see my posted thought above.
I think I am moving in right direction, but need some confirmation and
guiding

Best Regards
Snoopy
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to update other local macros

On Jan 27, 5:05*am, Snoopy wrote:
On 26 Jan, 15:20, Alan wrote:





On Jan 26, 11:33*am, Snoopy wrote:


Hey Guys
I have made a report-system that collects som summaries from a set of
users. In each local user Excel-file there is a macro that does stuff..
Sometimes I have to update this "local" macro - and have to ask every
user to replace the macro update manually (copy/paste in VBA).
Its not that big effort, but it would be more "proffessional"
expression if I could send over an automatic update sort-of-macro by
mail.


The update macro
1) I -as administrator - will chose the name of the macro to be
updated
2) I send thr update to the user
2) The user chose the local receiving file from the explorer/open-file
manager
3) My macro updates the local macro by running this update macro


Is this possible and how do I do it?


Example


Local file Report.xlsm contains a macro UpdatePivotFields
__________________
Best Regards
Snoopy


Have you considered putting all of the 'local' code into a single add-
in which is available to all. When changes are required simply reissue
the updated add-in to all of your users i.e. replace the whole file
rather than getting your users to cut/paste individual lines of code -
their workbooks remain untouched as long as the reissued add-in has
the same name as the previous version.


A.– Skjul sitert tekst –


– Vis sitert tekst –


Hey - thanks! :)
Please see my posted thought above.
I think I am moving in right direction, but need some confirmation and
guiding

Best Regards
Snoopy- Hide quoted text -

- Show quoted text -

What you are explaining cannot be done, Best way to do thist to keep
the users from updating it thierselves, is to add each user with thier
own file on a server, and have their file linked to their specific
file on the server. When you have to update their macro, you do the
update and when they open the file, it will update on their computer.
This is the best way to do it, a bit more work for you, but it will be
more professional. i agree with you having the user update something
that is technically your job is a bit unprofessional.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Macro to update other local macros

On Feb 11, 5:22*pm, " wrote:
On Jan 27, 5:05*am, Snoopy wrote:



On 26 Jan, 15:20, Alan wrote:


On Jan 26, 11:33*am, Snoopy wrote:


Hey Guys
I have made a report-system that collects som summaries from a set of
users. In each local user Excel-file there is a macro that does stuff.
Sometimes I have to update this "local" macro - and have to ask every
user to replace the macro update manually (copy/paste in VBA).
Its not that big effort, but it would be more "proffessional"
expression if I could send over an automatic update sort-of-macro by
mail.


The update macro
1) I -as administrator - will chose the name of the macro to be
updated
2) I send thr update to the user
2) The user chose the local receiving file from the explorer/open-file
manager
3) My macro updates the local macro by running this update macro


Is this possible and how do I do it?


Example


Local file Report.xlsm contains a macro UpdatePivotFields
__________________
Best Regards
Snoopy


Have you considered putting all of the 'local' code into a single add-
in which is available to all. When changes are required simply reissue
the updated add-in to all of your users i.e. replace the whole file
rather than getting your users to cut/paste individual lines of code -
their workbooks remain untouched as long as the reissued add-in has
the same name as the previous version.


A.– Skjul sitert tekst –


– Vis sitert tekst –


Hey - thanks! :)
Please see my posted thought above.
I think I am moving in right direction, but need some confirmation and
guiding


Best Regards
Snoopy- Hide quoted text -


- Show quoted text -


What you are explaining cannot be done, Best way to do thist to keep
the users from updating it thierselves, is to add each user with thier
own file on a server, and have their file linked to their specific
file on the server. When you have to update their macro, you do the
update and when they open the file, it will update on their computer.
This is the best way to do it, a bit more work for you, but it will be
more professional. i agree with you having the user update something
that is technically your job is a bit unprofessional.- Hide quoted text -

- Show quoted text -


This is simply untrue! A common add-in CAN be used for all users. A
small amount of code (that does not need editing) would be used in
each user workbook to either call common code from the add-in or
specific routines which are only used by that particular workbook. I
wish everything that cannot be done was this easy!


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Macro to update other local macros

On 26/01/2011 11:33, Snoopy wrote:
Hey Guys
I have made a report-system that collects som summaries from a set of
users. In each local user Excel-file there is a macro that does stuff.
Sometimes I have to update this "local" macro - and have to ask every
user to replace the macro update manually (copy/paste in VBA).
Its not that big effort, but it would be more "proffessional"
expression if I could send over an automatic update sort-of-macro by
mail.

The update macro
1) I -as administrator - will chose the name of the macro to be
updated
2) I send thr update to the user
2) The user chose the local receiving file from the explorer/open-file
manager
3) My macro updates the local macro by running this update macro

Is this possible and how do I do it?


It is possible but it would require that users have their security
settings very weak to permit running code that directly alters VBA and
exposes the VBA programming model (not default settings in XL2007/10).

Example

Local file Report.xlsm contains a macro UpdatePivotFields


As another poster has pointed out you would be better off putting all
the common code that is likely to alter into an AddIn and linking the
local worksheets to that. Then when you replace that master AddIn file
all linked copies are updated without any effort by your users.

Regards,
Martin Brown
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
Make custom buttons point to local macros always Fabian Excel Discussion (Misc queries) 2 May 6th 09 03:24 PM
run macros local and on the web KSO Excel Programming 0 January 16th 07 08:01 AM
Local excel file to update website Anonymous Chief Excel Programming 0 August 17th 05 02:14 AM
How to update Macros from Master Macro? Joe HM Excel Programming 2 March 11th 05 12:50 PM
Update Query and Local Tables in Excel Kevin Excel Programming 3 February 25th 05 09:27 PM


All times are GMT +1. The time now is 06:35 PM.

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"