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

"gimme this gimme that" suggested to me in an earlier post that instead of
trying to delete modules that are protected (which i never figured out how
to do in code), just run these macros and functions that are currently in my
modules in an Add-in. i have no idea how to do this. i have looked in the
chip pearson literature i have, but nothing on this. my goal is to provide
a "program" to a second party, have them run it, producing only output (no
code!) that they can then send to a third party. the second party (nor
third) will not have passwords, but the second party can have code locked in
an Add-in (but not the third party). any thoughts? thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default storing code in Add-in

Chip Pearson has quite a bit about add-ins here...
http://www.cpearson.com/excel/CreateAddIn.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"mike allen"
wrote in message
"gimme this gimme that" suggested to me in an earlier post that instead of
trying to delete modules that are protected (which i never figured out how
to do in code), just run these macros and functions that are currently in my
modules in an Add-in. i have no idea how to do this. i have looked in the
chip pearson literature i have, but nothing on this. my goal is to provide
a "program" to a second party, have them run it, producing only output (no
code!) that they can then send to a third party. the second party (nor
third) will not have passwords, but the second party can have code locked in
an Add-in (but not the third party). any thoughts? thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default storing code in Add-in

it appears i can store functions that have one answer as an .xla add-in, but
what about subroutines that actually calculate certain things, print them in
certain areas, etc.? can i use an add-in for calling subroutines? thx
"Jim Cone" wrote in message
...
Chip Pearson has quite a bit about add-ins here...
http://www.cpearson.com/excel/CreateAddIn.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"mike allen"
wrote in message
"gimme this gimme that" suggested to me in an earlier post that instead of
trying to delete modules that are protected (which i never figured out how
to do in code), just run these macros and functions that are currently in
my
modules in an Add-in. i have no idea how to do this. i have looked in
the
chip pearson literature i have, but nothing on this. my goal is to
provide
a "program" to a second party, have them run it, producing only output (no
code!) that they can then send to a third party. the second party (nor
third) will not have passwords, but the second party can have code locked
in
an Add-in (but not the third party). any thoughts? thanks.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default storing code in Add-in

You can call subs in an add-in from other VBA procedures in other projects
with the Run method. E.g.,

Application.Run "AddInName.xla!MyMacroName"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"mike allen" wrote in message
...
it appears i can store functions that have one answer as an .xla add-in,
but what about subroutines that actually calculate certain things, print
them in certain areas, etc.? can i use an add-in for calling subroutines?
thx
"Jim Cone" wrote in message
...
Chip Pearson has quite a bit about add-ins here...
http://www.cpearson.com/excel/CreateAddIn.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"mike allen"
wrote in message
"gimme this gimme that" suggested to me in an earlier post that instead
of
trying to delete modules that are protected (which i never figured out
how
to do in code), just run these macros and functions that are currently in
my
modules in an Add-in. i have no idea how to do this. i have looked in
the
chip pearson literature i have, but nothing on this. my goal is to
provide
a "program" to a second party, have them run it, producing only output
(no
code!) that they can then send to a third party. the second party (nor
third) will not have passwords, but the second party can have code locked
in
an Add-in (but not the third party). any thoughts? thanks.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default storing code in Add-in

An add-in is simply a hidden workbook.
Any code you put in a regular workbook should work in an add-in.
However, there are things to watch out for including that an add-in is
never the Active Workbook.
I have add-ins with dozens of functions and subs in them.
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html



"mike allen"
wrote in message
it appears i can store functions that have one answer as an .xla add-in, but
what about subroutines that actually calculate certain things, print them in
certain areas, etc.? can i use an add-in for calling subroutines? thx



"Jim Cone"
wrote in message
Chip Pearson has quite a bit about add-ins here...
http://www.cpearson.com/excel/CreateAddIn.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"mike allen"
wrote in message
"gimme this gimme that" suggested to me in an earlier post that instead of
trying to delete modules that are protected (which i never figured out how
to do in code), just run these macros and functions that are currently in
my
modules in an Add-in. i have no idea how to do this. i have looked in
the
chip pearson literature i have, but nothing on this. my goal is to
provide
a "program" to a second party, have them run it, producing only output (no
code!) that they can then send to a third party. the second party (nor
third) will not have passwords, but the second party can have code locked
in
an Add-in (but not the third party). any thoughts? 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
Storing XML In Workbook Ray Price[_3_] Excel Programming 2 January 22nd 07 10:55 AM
Storing column() to use later Marco Excel Programming 7 November 22nd 06 11:55 PM
storing a value in code Giselle[_2_] Excel Programming 4 May 9th 06 11:27 AM
storing of VBA code kurt Excel Programming 4 January 13th 06 06:27 PM
Storing Data in code? (relative primes to MOD as example) jasonsweeney[_86_] Excel Programming 3 August 22nd 05 12:44 AM


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