Hello proepert,
Sorry this took so long. I have been sick for a few days. A cold makes it difficult to keep all the minutia of API code straight. You will need to change the name of the UserForm in the macro to what you are using. It is in red font. The UserForm width and height (in pixels) is also marked in red . You can change these to set the size you want.
It is important that the UserForm be activated within this event to capture the window handle. It you need to do something different, please let me know and do not try to modify this code on your own.
Bookmarks