Capture alt & shift combination (change language) and ca

ktab

Well-known Member
Joined
Apr 21, 2005
Messages
1,297
Hello,

What i have is:
Code:
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If Shift = 5 Then Shift = 0
End Sub

This is my try to cancel the swifting languages while in my form. It does not seem to work.
Any ideas?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hello,

Ive had a great time trying to solve this and think I have the answer using API,

the site which eventually put me the right direction was,

http://vbnet.mvps.org/index.html?code/comdlg/messageboxex.htm

They say you can use the code but not repost on other sites, so to respect their wishes see the link above.

If you do want to use this API example, the above link should be self explanatory but if you can't make it work PM me and I will email you my working spreadsheet or code, but im off home now so it will be tomoz.

Cheers
Paul
 
Upvote 0
Hooking keyboard has given me in the past great surprises, but i'll give it one more try. Thank you
 
Upvote 0

Forum statistics

Threads
1,222,245
Messages
6,164,794
Members
451,917
Latest member
WEB78

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