#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default square root

Hi everyone, I am trying to create a program in Excel, but the Imsqrt
function is not recognized by VBA in Excel 2007. Is there a different way in
calculating the square root in VBA.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default square root

On Fri, 27 Jun 2008 18:35:01 -0700, PieIzq2 wrote:

Hi everyone, I am trying to create a program in Excel, but the Imsqrt
function is not recognized by VBA in Excel 2007. Is there a different
way in calculating the square root in VBA.


Sqr Function Example
This example uses the Sqr function to calculate the square root of a
number.

Dim MySqr
MySqr = Sqr(4) ' Returns 2.
MySqr = Sqr(23) ' Returns 4.79583152331272.
MySqr = Sqr(0) ' Returns 0.
MySqr = Sqr(-4) ' Generates a run-time error.

hth
bst
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 762
Default square root

PieIzq2 -

In Excel 2003 and earlier versions, the functions for imaginary numbers
require installation of the Analysis ToolPak add-in.

In Excel 2007, those functions are standard worksheet functions.

So, in Excel 2007, whether or not the Analysis ToolPak add-in is installed,
you can use IMSQRT in a worksheet cell, and you can use
WorksheetFunction.ImSqrt in VBA code.

- Mike Middleton
http://www.DecisionToolworks.com
Decision Analysis Add-ins for Excel


"PieIzq2" wrote in message
...
Hi everyone, I am trying to create a program in Excel, but the Imsqrt
function is not recognized by VBA in Excel 2007. Is there a different way
in
calculating the square root in VBA.



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
square root Mitch Easterby Excel Worksheet Functions 6 May 22nd 09 03:00 AM
square root marpad Excel Discussion (Misc queries) 4 March 23rd 07 08:09 PM
Cubed square root Damon Longworth Excel Worksheet Functions 8 February 13th 07 01:38 PM
Square Root Symbol in VBA MentalDrow Excel Discussion (Misc queries) 8 January 25th 07 08:36 AM
Square Root in VBA Lucy Pearl Excel Programming 6 November 11th 05 05:28 PM


All times are GMT +1. The time now is 04:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"