Tab, Escape, and Enter keys not working sometimes in user form?

Jozemite_Apps

New Member
Joined
May 2, 2017
Messages
1
I have a somewhat complex user form with text fields, combo boxes, check boxes, and radio buttons.

Sometimes, about 40% of the time when the user form is opened and starts at the first text box, keyboard commands do not work. This means that Tab does not go to the next field, Enter does not close the user form, and Escape does not close the user form either. I can type in the text boxes like normal.

I don't have any code either modifying the behavior of any control in the user form. All done through the editor. All controls have TabKeyBehavior to False and Tabstop to True.

if this happens, I found out the ONLY way to fix it without closing the user form or reopening the file is to push F1 to open the help window, close it, and the user form works as intended.

This is a file that gets used by over 8 coworkers so I this bug is really annoying. I have even before deleted the user form and recreated it from scratch but that didn't fix it. I also made an entire new excel file and redid the entire project there (different code) and bug is still there.
 

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

K e v i n

Board Regular
Joined
Mar 1, 2014
Messages
109
How is the form being loaded and is there anything in the forms 'UserForm_Initialize'
 

Watch MrExcel Video

Forum statistics

Threads
1,095,352
Messages
5,443,959
Members
405,257
Latest member
daveyf

This Week's Hot Topics

Top