Hi all.
How can I get the current keyboard layout?
I'm asking this because when "Application.OnKey" tries to assign a key combination, which contains a character in other layout then the active, it will result run-time error 1004 with the following message:
And I wonder, can Excel listen and know when the keyboard layout gets changed?
Thanks in advance, Meir.
How can I get the current keyboard layout?
I'm asking this because when "Application.OnKey" tries to assign a key combination, which contains a character in other layout then the active, it will result run-time error 1004 with the following message:
So I want to check the layout first, before running "Application.OnKey".Method 'OnKey' of object '_Application' failed
And I wonder, can Excel listen and know when the keyboard layout gets changed?
Thanks in advance, Meir.
Last edited: