ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VBA Functions Undefined (https://www.excelbanter.com/excel-worksheet-functions/217231-vba-functions-undefined.html)

James O. Thompson

VBA Functions Undefined
 
I'm using Excel 2000 VBA but all references to functions in a VB program
come up as undefined. e.g., Asin(). Such references directly in a
spreadsheet cell work properly. I'm pretty sure I need to set a reference
to some object library but don't know which.

Any help,

Jim Thompson



Mike H

VBA Functions Undefined
 
Hi,

You need to remind VB that it's a worksheet function

myvalue=worksheetfunction.Asin(.....

Mike

"James O. Thompson" wrote:

I'm using Excel 2000 VBA but all references to functions in a VB program
come up as undefined. e.g., Asin(). Such references directly in a
spreadsheet cell work properly. I'm pretty sure I need to set a reference
to some object library but don't know which.

Any help,

Jim Thompson




James O. Thompson

VBA Functions Undefined
 
That is service. I sent my question only an hour or so ago.

Indeed that fixes the problem.

Thanks,

Jim Thompson

"Mike H" wrote in message
...
Hi,

You need to remind VB that it's a worksheet function

myvalue=worksheetfunction.Asin(.....

Mike

"James O. Thompson" wrote:

I'm using Excel 2000 VBA but all references to functions in a VB program
come up as undefined. e.g., Asin(). Such references directly in a
spreadsheet cell work properly. I'm pretty sure I need to set a
reference
to some object library but don't know which.

Any help,

Jim Thompson







All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com