Compile error: Sub or Function not defined
As a follow up to my previous blog entry Compile error: Method or data member not found here's the identical VBA IDE problem but due to a function name not found.
In the above screen shot CalcPrice is the undefined function yet the VBA showed the previous variable.
Note that I frequently use the If ... Then _ if there is only one line of code to be executed. Looks nicer, in my opinion, and shortens code.