Dear excel wizards:
So my scenario is I have a userform that should simulate a change in a process. Two textboxes are used. The first one presents the current value and so does the second one.
But in order to simulate change there is a scrollbar the user can play around with to change the value in the second textbox. And then press a button to see what difference this would make.
Anyway. The first textbox is set up when the userform is initialized. The second should only be controlled by the scroll bar. I don't want the user to ever touch those boxes.
I know I could protect them. But that would mean changing the scrollbar would unprotect-change-protect. Sure that would work.
But if I could just cancel what happened if it was clicked so that the user never enters the boxes that would make it nicer.
Any thoughts?
Why not use a label if you are not wanting to make use of the textbox functionality?
Hahaha, great one!
I thought the textboxes looked way nicer, but after your suggestion I played around with lables and found the borderline and sunken mode which made it look like a textbox. So that was a great way to get around the problem.
Thanks!
Still a bit curious about my last question though.
Try using the Locked property on the textbox
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks