Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks 
Author Message
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks

I have a hidden workbook that contains many custom functions in several
standard code modules. This hidden workbook is opened at runtime by an AddIn
(also created by me). I need these custom functions to be accessible
(call-able) from within any of the currently open workbooks in the same way
that the 'personal.xls' macro 'workbook' is accessible by all other
workbooks.

Does anyone know how this can be easily done? I want to avoid dynamically
creating a reference to my hidden workbook in all of the other workbooks if
possible.

Thanks in advance

Toby Chittenden



Sun, 05 Oct 2003 08:21:56 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
Hello Toby,

Have you considered making your hidden workbook an Add-in? It is stored as
an .xla and can be loaded via the
Tools | Add-ins menu command. Setting that will cause that add-in to be
loaded by every workbook that has specified it as an add-in.  It is still
hidden. A hacker can load it but can't see the code - if you have protected
it.



Tue, 07 Oct 2003 03:04:39 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
Chris,

I cannot protect this hidden workbook as I need the user to be able to
insert custom function code modules into it at on the fly at run-time - via
my other AddIn for my system.

I was just wondering how Excel exposes the 'personal.xls' workbook to all
other open workbooks - and hence can I use the same mechanism to expose my
hidden workbook in the same way.

Ta

Toby


Quote:
> Hello Toby,

> Have you considered making your hidden workbook an Add-in? It is stored as
> an .xla and can be loaded via the
> Tools | Add-ins menu command. Setting that will cause that add-in to be
> loaded by every workbook that has specified it as an add-in.  It is still
> hidden. A hacker can load it but can't see the code - if you have
protected
> it.



Tue, 14 Oct 2003 10:01:09 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
Hello Toby,

The personal.xls workbook is stored in the Startup folder. Any workbook
with the .xls extension is opened when Excel loads. If it is not hidden it
becomes visible. If it is hidden it is loaded but doesn't show.

The same will work for your .xls file. You can see more about the topic by
reading the Microsoft Knowledge Base article:
Q240150 - XL2000: How to Use Excel Startup Folders

You can access that from the web with the simple address "mskb 240150"
(without the quotes, and no dot anything.)



Tue, 14 Oct 2003 22:11:12 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
Chris et Al.

Unfortunately I don't want to open my hidden workbook everytime Excel starts
up but only when my AddIn is loaded. That said, I still want it to have the
same global scope as the personal.xls workbook. Any ideas how I do this?

Regards

Toby Chittenden


Quote:
> Hello Toby,

> The personal.xls workbook is stored in the Startup folder. Any workbook
> with the .xls extension is opened when Excel loads. If it is not hidden it
> becomes visible. If it is hidden it is loaded but doesn't show.

> The same will work for your .xls file. You can see more about the topic by
> reading the Microsoft Knowledge Base article:
> Q240150 - XL2000: How to Use Excel Startup Folders

> You can access that from the web with the simple address "mskb 240150"
> (without the quotes, and no dot anything.)



Sat, 08 Nov 2003 10:50:50 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
No ideas whatsoever since you specified that the user must be able to add
macros to it at run time.


Sun, 16 Nov 2003 04:26:46 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
Chris (et Al.)

I also don't know how to do it which is why I posted to this newsgroup.
However, what I am trying to do is mimic the behaviour of the personal.xls
macro workbook but in a workbook of my own creation. Does anyone know how to
do this... or even if it is possible?

Toby


Quote:
> No ideas whatsoever since you specified that the user must be able to add
> macros to it at run time.



Mon, 17 Nov 2003 12:47:11 GMT  
 Excel 97/2000: making custom functions (in a hidden workbook) available to all open workbooks
What happens if you record all the macros in "MyPersonal.xls", and then
load that from the Add-in? You call the macros from another workbook with
MyPersonal!MySub( ). The workbook is available on that machine, but not on
the network. Don't put it in the XLStart folder. That way you don't need to
create a reference to it in all other workbooks. But the calls to it have
to be specific, since you don't have a reference.


Mon, 17 Nov 2003 23:02:07 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Making Standard Access 97 constants available in my functions

2. Excel Workbook takes too long to open in Excel 2000

3. Compatibility Problem Using MS Excel 97 VBA on Excel 2000/XP - Causes crashes

4. Excel 97 VBA vs Excel 2000 VBA

5. Excel 2000 crashes when running macros created in Excel 97

6. Opening an Excel 97 Workbook from a web page

7. Upgrading Access 97 to 2000 makes recordset unavailable to ADO

8. another 97/2000 hidden window problem

9. Convert custom Addin from Access 97 to 2000

10. linking an access2000 database with an excel 2000 workbook

11. Workbook.Close bugs in Excel 2000

12. Excel 2000 - Workbook events

 

 
Powered by phpBB® Forum Software