VBA Code for Userform to change the Enter Key Behavior to false for a particular listbox or a text box

vish621979

New Member
Joined
Apr 1, 2011
Messages
2
Hi,

I am very new to VBA programming. I am designing a Userform which adds and edits value to Excel Database. The process has three stages. 1 Collect 2 Analyze and 3 Quality check.

I have put three buttons for each stage. What I want to do now is, when a user clicks on "Collect" button, some of the unwanted listboxes change the enterkeybehaviour to False automatically. So taht the user can not enter any value from a particular list box or a combobox.

Can somebody help me with this please?

thanks
V
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
It sounds like you want to change the .Enabled property of the list box rather than its .EnterKeyBehaviour.

Which controls would you want to disable?
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top