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

I have a User Defined Function in an add-in (XLA file created by myself).
What do I need to do in order to allow me to access it from code in another
project?

i.e.

The function is a Public Function located in the .xla file and is called
GetFolderName. I use it as follows:-

FolderName = GetFolderName("Title for GetFolderName")

But I get the error:-
"Sub or Function not defined"

What do I need to change in order to access a UDF stored in an XLA from a
seperate excel workbook?

Ta

Andy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Make Function Public

I assume you mean use it in VBA. Then

either create a reference to the addin

or use application.Run to execute it.

--
Regards,
Tom Ogilvy

"Andibevan" wrote in message
...
I have a User Defined Function in an add-in (XLA file created by myself).
What do I need to do in order to allow me to access it from code in

another
project?

i.e.

The function is a Public Function located in the .xla file and is called
GetFolderName. I use it as follows:-

FolderName = GetFolderName("Title for GetFolderName")

But I get the error:-
"Sub or Function not defined"

What do I need to change in order to access a UDF stored in an XLA from a
seperate excel workbook?

Ta

Andy




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Make Function Public

If I then run the workbook (with the reference created) on a different PC
that also has the .xla installed will it work or do I have to setup the
reference on each PC?

"Tom Ogilvy" wrote in message
...
I assume you mean use it in VBA. Then

either create a reference to the addin

or use application.Run to execute it.

--
Regards,
Tom Ogilvy

"Andibevan" wrote in message
...
I have a User Defined Function in an add-in (XLA file created by myself).
What do I need to do in order to allow me to access it from code in

another
project?

i.e.

The function is a Public Function located in the .xla file and is called
GetFolderName. I use it as follows:-

FolderName = GetFolderName("Title for GetFolderName")

But I get the error:-
"Sub or Function not defined"

What do I need to change in order to access a UDF stored in an XLA from a
seperate excel workbook?

Ta

Andy





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Make Function Public

If the addin is in the exact same path and has the same name, I don't think
you would need to recreate the reference.

If not, you would.

--
Regards,
Tom Ogilvy


"Andibevan" wrote in message
...
If I then run the workbook (with the reference created) on a different PC
that also has the .xla installed will it work or do I have to setup the
reference on each PC?

"Tom Ogilvy" wrote in message
...
I assume you mean use it in VBA. Then

either create a reference to the addin

or use application.Run to execute it.

--
Regards,
Tom Ogilvy

"Andibevan" wrote in

message
...
I have a User Defined Function in an add-in (XLA file created by

myself).
What do I need to do in order to allow me to access it from code in

another
project?

i.e.

The function is a Public Function located in the .xla file and is called
GetFolderName. I use it as follows:-

FolderName = GetFolderName("Title for GetFolderName")

But I get the error:-
"Sub or Function not defined"

What do I need to change in order to access a UDF stored in an XLA from

a
seperate excel workbook?

Ta

Andy







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
Public Function Remarks TKS_Mark Excel Discussion (Misc queries) 2 September 23rd 08 07:12 PM
How to make my spreadsheed public HoganD87 Excel Discussion (Misc queries) 2 August 17th 07 11:00 AM
Using A Public Function / carl Excel Worksheet Functions 1 April 6th 06 09:13 PM
How do I make my functions public to all workbooks? DMB Excel Discussion (Misc queries) 3 February 16th 06 02:20 PM
Public Function Monty Excel Discussion (Misc queries) 9 December 24th 04 06:35 PM


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