Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default 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





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
Error: Undefined or non-rectangular name Conan Kelly Excel Worksheet Functions 0 August 7th 08 03:29 AM
Excel error: Undefined Function 'InStrRev' in Expression TerryD Excel Worksheet Functions 4 February 6th 07 02:43 PM
Undefined function error CLamar Excel Discussion (Misc queries) 3 June 5th 06 07:07 PM
Linking Worksheets in an undefined number of Workbooks ozcarb Excel Discussion (Misc queries) 0 March 22nd 06 10:24 PM
undefined function error when creating xls pivot from mdb qry andrew Excel Worksheet Functions 0 July 29th 05 07:26 PM


All times are GMT +1. The time now is 01:06 PM.

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"