I am using the following code to compile my vba code by clicking on a button.
Private Sub cmdCompile_Click()
The code is running, but it is not throwing debug errors when I have problems with my code. Is there an alternative way I should be writing this?
I get an error with my code when I use the menu drop down - Debug/Compile, but not when I click the button I created.