Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Distributing code

Hi,

I have sent out a workbook to a few friends via email
which contains various subroutines. The actual subroutine
is a 'Before Close' routine. I need to change the code in
just this subroutine. Is there a neat way to send just
the newly amended subroutine to this group but not have
to send out the whole amended workbook. The reason being,
that each of the Users has different data in the same
workbook template so I don't want to have them start over
again.

What I really need is a program that will update their
workbook and change the code in just this one subroutine.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Distributing code

Andy,

Chip Pearson has some examples of how to manipulate VBA
code. Should give you a start.

http://www.cpearson.com/excel/vbe.htm

I've run into the dilemma that you're in myself.
As such, I never code anything into a workbook event other
than a call to a sub in a regular module. The regular
module contains all of the code that would normally have gone into
the event. In that way, anytime I need to modify the workbook, it's
only a matter of deleting and importing the desired module. It also
makes it a lot easier to test.

John

Andy Reed wrote:

Hi,

I have sent out a workbook to a few friends via email
which contains various subroutines. The actual subroutine
is a 'Before Close' routine. I need to change the code in
just this subroutine. Is there a neat way to send just
the newly amended subroutine to this group but not have
to send out the whole amended workbook. The reason being,
that each of the Users has different data in the same
workbook template so I don't want to have them start over
again.

What I really need is a program that will update their
workbook and change the code in just this one subroutine.

Any ideas?


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
distributing days KANDLEZ Excel Worksheet Functions 1 May 20th 09 02:01 AM
Best method of distributing code Andrew Excel Discussion (Misc queries) 1 June 29th 07 01:01 PM
Distributing a Cell Value MLCole Excel Worksheet Functions 5 March 7th 06 05:23 PM
Distributing Excel Spreadsheets MattVonFat Excel Discussion (Misc queries) 2 May 25th 05 08:43 PM
distributing numbers Neil Excel Discussion (Misc queries) 1 April 15th 05 06:41 PM


All times are GMT +1. The time now is 02:36 AM.

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"