Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Run-time error, why?

I have this line in my macro:
k = Log(Atn(x) * Sin(5 * x)) / Log(Cells(3, "L"))
But it gives me an error.

I can't figure out, why. Any ideas?
--
You can't know everything about everything.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Run-time error, why?

I know next to nothing about scientific functions but the vba help index for
LOG showsmy guess isk = Log(Atn(x) * Sin(5 * x)) / Log(Cells(3, "L"))k =
(Log(Atn(x)) * Sin(5 * x)) / Log(Cells(3, "L"))Static Function Log10(X)
Log10 = Log(X) / Log(10#)
End Function



--
Don Guillett
SalesAid Software

"Merike" wrote in message
...
I have this line in my macro:
k = Log(Atn(x) * Sin(5 * x)) / Log(Cells(3, "L"))
But it gives me an error.

I can't figure out, why. Any ideas?
--
You can't know everything about everything.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Run-time error, why?

Might you be taking the log of a number that is negative or is equal to
zero?

Test the individual components of the expression to determine
intermediate results.

Art


Merike wrote:
I have this line in my macro:
k = Log(Atn(x) * Sin(5 * x)) / Log(Cells(3, "L"))
But it gives me an error.

I can't figure out, why. Any ideas?
--
You can't know everything about everything.


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
Run Time Error 1004: Application or Object Defined Error BEEJAY Excel Programming 4 October 18th 06 04:19 PM
Run Time 1004 Error: Application or Object Difine Error BEEJAY Excel Programming 0 October 17th 06 10:45 PM
Conditional Formatting - Run Time Error '13' Type Mismatch Error ksp Excel Programming 0 July 11th 06 07:06 AM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM


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