Help with VBA Error
Tonight am I attempting to learn VBA and using a tutorial from jlathamsite.com.
It was all going well until I had to type up my first programme (module).
The below code is producing an error which says "Expected: end of statement" and is highlighting raiseToPower as the location.
MsgBox theNumber & " raised to the power of " raiseToPower & " = " theResult
If it helps theNumber and raiseToPower are both Dim and are Integers.
Thanks,
Hat
Last edited by HatStephens : February 26th 12 at 01:11 AM
|