View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
PatFinegan[_14_] PatFinegan[_14_] is offline
external usenet poster
 
Posts: 1
Default bizarre "invalid procedure call" error

Sub Test1 below generates an "invalid procedure call or argument" erro
(#5) in Excel 97 and Excel 2003 on all of my PCs. Sub Test2 does not
Can anyone replicate this? If so, can anyone explain the problem, o
provide a workaround other than writing the variables to cells an
performing the calculations there? Thanks in advance.

Sub Test1()
Dim a As Double, b As Double, c As Double
a = -0.1
b = 0.05
c = a ^ b
End Sub

Sub Test2()
Dim c as Double
c = -0.1 ^ 0.05
End Su

--
Message posted from http://www.ExcelForum.com