Hello Marco Wu
In the point where you want your form to show you only need to write this script
This tells the macro to call for that specific UserForm
Hope i did not misunderstand your question
Open the macro and click on main sub. And then run the macro. If if runs fine then better assign a button for the macro on the toolbar and set that to main sub.