I have an Excel worksheet that contains a number of ActiveX text boxes.
When data is entered into a text box, and the text box loses focus, it briefly flashes its old value before displaying the new value. This happens for all text boxes in any workbook I create, whether they have code associated with them or not.
This feels like it's a new thing to start happening to me over the past few weeks, and I can't for the life of me work out how to make it stop.
Does anyone have any suggestions?
Related
Office 365/Excel, I did the following:
Open New blank workbook.worksheet
Insert activex textbox 3)properties - link to a cell (G1).
But when out of design mode and selecting the textbox to type, the cursor is not showing - that is, no invitation to type anything. If I type something in G1, that value appears in the textbox. If I type something in the textbox, the characters are invisible in the textbox but appear dynamically in G1, and then appear in the textbox when I click outside the textbox.
Also, if I format textbox to change the order to something else (say "bring to front"), I can type in the textbox OK, but when I click outside, the behaviour returns.
I read somewhere a textbox is bi-directional and this appears to be so, except for being unable to see the characters typed in the textbox.
Wondering if you're using external monitors?
There seems to be a bug in Excel and I had the exact same issue. As soon as I unplugged the second monitor or (actually just moving the Excel document to the main screen, the ActiveX textbox was working as intended).
Hope that helps.
Set property ControlTipText in Userform Textbox does not show the appropriate behavior (it does not change anything). Set manually, or for example via VBA to
UserForm1.Textbox1.ControlTipText= "Text"
I did a lot of investigation why it could happen, that after
initializing with Userform.show, there is nothing appearing when moving the cursor over the TextBox as it is shown even in Videos.
The problem is probably extremely simple cause it does not depend which Userform nor which element I choose.
I have a complex workbook that has a number of ActiveX Combo boxes which I choose over form controls for their customization options. Inexplicably, ALL of the boxes stopped working this morning. Literally, one minute they worked and then stopped completely. I was not working on that sheet, but rather a different one. There is no code attached to the combo boxes. When in design mode, the properties box doesn't even come up. Developer>Properties opens the worksheet properties only. This problem is not associated with the workbook because older versions of the same sheet are acting the same way. However, the compiled version of the workbook works fine. This suggests corruption in Excel somehow, so I repaired Excel (Office 365). No difference.
I deleted the combo box and replaced it and it is ok now, but that's not good enough for me. I have many others to remove and replace, but why do I need to do this? There are 180 other boxes that this happened to in the past and I simply used Data Validation for because I could not have this happen. I distribute this workbook in a compiled version only, so if I was certain that this bizarre occurrence could not happened once its compiled, I will replace all of the boxes that don't work and replace all of the data validation boxes with activeX, and compile it immediately. But I like things to make sense. What the heck is going on?
An ActiveX combo box has it's code on the sheet module for the sheet it is in. So, it's not odd that looking for the properties of the combo box that the sheet module would pop up. When in design mode and you right click on the combo box a pop up menu should come up that allows you to click and see the box's code on the sheet module. Are you saying that all the code for the boxes vanished or you had never written it? How do they get populated? I apologize for commenting in the answer section but I don't have enough points yet to write in the comment section.
The fact that no one has answered this suggests that this is behavior that I am causing. My belief at this point is that there is code running in the background which suspends other activity. I have a pop up calendar that ends with a range selection. I believe that this is looping somehow.
I am going to replace the data validation boxes with more combo boxes throughout the sheet with the calendar code in mind.
I am encountering a small difficulty with an excel file I am working on. When moving from one sheet to another, the new activated sheet is sometimes locked in that sense that I can't make keyboard inputs. This seems to be the consequence of a interacting with a combobox or a listbox.
The issue also arises when I first click on the control and then try to change the content of the unlocked cell of the protected sheet. When the sheet is unprotected, the issue does not arise.
This seems to be resolved when I add this code on the control lostfocus event
debug.print selection.locked
Do ActiveX controls interfer with sheet protection or keyboard input (I can still use the dropdowns of those cell, select them with the mouse, etc.)
Any clue of how to resolve this without adding this mysterious line?
Thanks for your help!
If you have the formula bar hidden just turn it visible. I know it sounds wierd but it worked for me.
I wanted to know after I initialize a combobox, is there a possibility that I can still stay active with the background Excel sheet using the cursor like scroll the sheet up/down, type words on the sheet, etc?
(While at the same time the combobox still stays on top of the Excel sheet doing whatever event you might want to do with your VBA?)
Go to the VBA IDE and select your form. In the properties list (on the left hand side of the screen), find the ShowModal property. Set this to False.
This will prevent the dialog from taking over the window.