Originally Posted by
porucha vevrku
You must first create a "UserForm" with its objects (text boxes, lists, buttons, etc.) and adapt the code to the names you give these objects in "UserForm".
To expand on this, it appears that brockbaker27 simply declared a UserForm object, but the way to do this is to create a UserForm in the VBA design window, to reproduce the original DialogSheet. A declaration for the UserForm is not needed, just use the name of the UserForm in the code.
The Show method for a UserForm does not return a value. You are treating it as a Boolean function. You will have to redesign this aspect to have the form indicate whether something was entered. I assume that is if the user hit OK instead of Cancel. You can add a public variable in the UserForm code to indicate it. I usually do something like this:
Then
Bookmarks