Depends on which type of "button".
If it's a "Form Control", create a small macro in a standard module with something like:
Then assign that macro to the button.
If it's an "ActiveX Control", place the button then double click on it (in Design Mode) to bring up the VB Editor. Add UserForm1.Show to that code and away you go.
That doesn't necessarily avoid the debug error. Could you tell us which error exactly you get and which line it highlights when you press debug?
Or even better, attach a sample workbook with the error.
BSB
Bookmarks