electricpete
Technical User
I created a vba function called R2_ac in excel 2000.
It returns a double. It works fine when called by vba but creates an error the moment I enter it into excel (excel thinks I have an error in my formula as soon as I press enter).
Even if I simplify the function to:
Function R2_ac(ab As Double) As Double
R2_ac = 1
End Function
I still get an error typing in spreadsheet = R2_ac(1).
When I change the name of the function to Rrot, everything works fine.
I have seen before names starting with Rn or Cn where N is an integer cause problems. Can anyone explain why that is?
It returns a double. It works fine when called by vba but creates an error the moment I enter it into excel (excel thinks I have an error in my formula as soon as I press enter).
Even if I simplify the function to:
Function R2_ac(ab As Double) As Double
R2_ac = 1
End Function
I still get an error typing in spreadsheet = R2_ac(1).
When I change the name of the function to Rrot, everything works fine.
I have seen before names starting with Rn or Cn where N is an integer cause problems. Can anyone explain why that is?