Windows Calculator app has no difficulty calculating (0.438 * -16) ^ 2.2. But VBA says NO WAY. After googling, it appears that VBA requires when using the syntax a ^ b, if a is negative, b must be an integer.
As a workaround, I tried the Excel Power function. However, when I tried Application.WorksheetFunction.Power(0.438 * -16, 2.2), it gave the error message that it was unable to find the Power property of the WorksheetFunction class, despite that when I was typing it out it offered it up as a recognized function.
Also, obviously one of these values is actually a variable (the -16 part), I'm just using the literal values for the last value that caused a problem to create this example.
Any suggestions?
Bookmarks