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

I have several excel files which are all identical in what they do but
all contain different data (each one is a different year) and they
have to remain separate files. Using a script in a module it populates
each sheet. Works great but the problem is that the modules in all of
the files are identical and whenever i need to change the code, i have
to go into each file and copy/paste the new code in. To run the code
each sheet has a button which activated Sub Populate() in the code. Is
there a way for me to put the code into a separate file in a different
location so that the can all share the same code?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Accessing External Module

hi
yes. put the code in a personal.xls file and put the file in the xlstart
folder so that it will open when excel opens. the personal.xls file is
usually hidden but all macro in the personal.xls file are available for any
file. many users put their personal UDF in thier personal.xls also.

regards
FSt1

" wrote:

I have several excel files which are all identical in what they do but
all contain different data (each one is a different year) and they
have to remain separate files. Using a script in a module it populates
each sheet. Works great but the problem is that the modules in all of
the files are identical and whenever i need to change the code, i have
to go into each file and copy/paste the new code in. To run the code
each sheet has a button which activated Sub Populate() in the code. Is
there a way for me to put the code into a separate file in a different
location so that the can all share the same code?

Thanks!

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
Accessing external excel files [email protected] Excel Programming 1 June 14th 07 01:49 PM
Accessing external DB, and making query David Wessell Excel Programming 1 April 30th 07 11:28 PM
Pivot table accessing external data Jwaltb Excel Discussion (Misc queries) 6 February 22nd 07 06:04 PM
Accessing external database causing problems? Michael Malinsky Excel Programming 1 December 21st 05 09:30 PM
Accessing External Data Jon Kane Excel Programming 1 October 30th 03 01:52 PM


All times are GMT +1. The time now is 10:09 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"