Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default "Asin" doesn't work in VB for Excel macros

I get the error message "sub or function not defined" when I try to use ASIN
in VBA Excel. Works OK in the worksheet, asin gets changed to Asin when I
type it into VBA and Asin is listed as a function for VBA in the help but it
doesn't work?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default "Asin" doesn't work in VB for Excel macros

Try application.asin()

Some worksheet functions have equivalent VBA functions. Some don't.

Some worksheet functions can be used in VBA (like this one).

Alan wrote:

I get the error message "sub or function not defined" when I try to use ASIN
in VBA Excel. Works OK in the worksheet, asin gets changed to Asin when I
type it into VBA and Asin is listed as a function for VBA in the help but it
doesn't work?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default "Asin" doesn't work in VB for Excel macros

try this:

application.worksheetfunction.asin(...)


--
www.alignment-systems.com


"Alan" wrote:

I get the error message "sub or function not defined" when I try to use ASIN
in VBA Excel. Works OK in the worksheet, asin gets changed to Asin when I
type it into VBA and Asin is listed as a function for VBA in the help but it
doesn't work?

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
=SUBSTITUTE(C4,"~?#","") will this work to remove multiple string Raja Mahendiran S Excel Worksheet Functions 6 May 12th 10 09:10 PM
"excel "macros may be disabled" message using an xlam file frustrated Excel Worksheet Functions 2 July 13th 09 08:32 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"openinf file..."ENABLE MACROS...DISABLE MACROS" F. Lawrence Kulchar Excel Discussion (Misc queries) 3 September 12th 06 10:33 AM
pictures to work with "data" "sort" option arad Excel Discussion (Misc queries) 1 April 18th 06 09:15 PM


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