Thanks for that snippet. It works for me. I simply added a "Close" button to the UserForm. Now the User has the option of viewing or not viewing the Summary. Much more friendly.
All the issues I asked you about have been resolved.
Issue 1 - Open the UserForm when workbook opens has been resolved with the following code:
This "seems" to work; I'll need to do more extensive testing.
Issue 2 - UserForm now updates on the fly. I added this code to the worksheet change event:
Unload UserForm and UserForm.Show closes the UserForm then reinitializes the UserForm. The last three lines of the code sends a Mouse click to the application and takes the "cursor" focus off the UserForm and puts it back to the worksheet at the selected cell.
Issue 3 - Not allow the user to close the UserForm was resolved by the snippet you provided.
Issue 4 - The cursor "appeared" to stay focused on the UserForm after reload. That issue "appears" to have been resolved with this code
I gotta be honest with you, I have no idea why this fixes the problem or what it's doing.
I found this code on Mr. Excels Forum (from Gary E)
and adapted it to my needs.
Question: In my working career (I'm retired), I did a lot of work in Visual FoxPro. With the software came a manual that was about 1200 pages thick. It contained all the commands, functions and system variables of the language and examples of how and when to use them. Are you aware of something similar thats available for VBA?
I'll look at the "Floating TextBox" reference you provided. For now, I'm going to mark this thread solved.
Thanks for your help.
John
Bookmarks