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

I want to use a function defined in one workbook within the VBA code of
another workbook.

My code looks like

b = 0
a = [personal.xls].UseIsOK(b)

but I get an error message

run time error 424

object required

The called function requires no arguments, but I get the same error message
if I use

a = [personal.xls].UseIsOK()
or
a = [personal.xls].UseIsOK

Any help would be appreciated.

Thanks.

Marvin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Use External Function


a = Application.Run( "personal.xls!UseIsOK")

--
Regards,
Tom Ogilvy



"Marvin" wrote:

I want to use a function defined in one workbook within the VBA code of
another workbook.

My code looks like

b = 0
a = [personal.xls].UseIsOK(b)

but I get an error message

run time error 424

object required

The called function requires no arguments, but I get the same error message
if I use

a = [personal.xls].UseIsOK()
or
a = [personal.xls].UseIsOK

Any help would be appreciated.

Thanks.

Marvin

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
How to run external workbook function/procedure? Vinod Excel Discussion (Misc queries) 3 August 10th 09 02:03 PM
call external function DavidB Excel Worksheet Functions 2 March 16th 09 09:04 PM
OFFSET() function with external references braultg Excel Programming 3 August 18th 06 01:16 PM
Using a function from a vba add-in: is that considered an external link Bura Tino Excel Programming 6 May 7th 04 07:59 AM
External function call Kevin Excel Programming 1 April 6th 04 06:35 AM


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