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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

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