LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Natural log function

I am trying to use the Ln (natural log) function in a cell formula produced
by VBA. The compiler tells me that the Ln function is not defined. Below is
my code. Any suggestions?
If EarlyTrendType = "Logarithmic" Then
Cell.Value = ActiveSheet.Range(L1).Value * Ln(Cell.Offset(0,
-2).Value) + _
ActiveSheet.Range(L2).Value
End If
Note that L1 & L2 are the cell address' for the regression coefficients
produced by Linest().
 
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
Formula with natural English language adman4 Excel Worksheet Functions 3 January 22nd 09 03:16 AM
Need to set up a chart for BTU usage on Natural gas and Electric FrankB[_2_] Excel Worksheet Functions 4 March 10th 07 11:07 PM
Finding the Natural Log ln(#) Jen Excel Discussion (Misc queries) 1 February 8th 07 11:57 PM
how do i use excel's natural log function with negative numbers? Craig Excel Worksheet Functions 7 April 18th 06 08:39 PM
Natural Logarithm in Microsoft Query David W[_2_] Excel Programming 0 December 11th 05 07:28 PM


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