LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default copying VBA from one Excel file to another

I have collected several spreadsheets calculators useful for different
applications. To protect them from users changing stuff, and losing the
files, I have combined them all in one file. I have then created a VBA code
and changed the file into an addin. When the file is opened, the user gets
an extra menu on the menu bar, with a drop down list of the different
calculators I have collected. When the user picks the calculator he wants,
the macro creates a new xl file and copies the appropriate xl sheet that
contains the desired calculator from the addin to a new sheet. Simple,
effective, and good housekeeping.

The problem occured when I bumped into a calculator that contains a number
of VBA functions in a module. Copying the sheet over won't do the trick any
more. Is there a way to copy over the functions as well. Or, is there a way
to make the functions (and maybe sub statements) located in the addin be
called up from the spreadsheet I copy over?

The functions are called up from cells in the worksheet as follows:

=interplookup2d(D4;D3;$C$22:$O$29)


 
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
Error Copying File or Folder message when copying file to CD [email protected] Excel Programming 0 August 2nd 08 05:43 PM
Copying Excel File Problem Raja Excel Programming 6 May 21st 07 05:32 PM
reading txt file and copying the lines in new excel file [email protected] Excel Programming 2 August 11th 06 07:20 PM
Copying excel file to word Gary Excel Discussion (Misc queries) 1 November 2nd 05 10:28 PM


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