PDA

View Full Version : [SOLVED:] CTRL+Z changed inadvertently



Souriane
06-11-2021, 07:06 AM
Hi!

I did a huge mistake this morning in Word!! I programmatically changed the shortcut CTRL+Z :banghead:



With Application.KeyBindings .Add KeyCode:=BuildKeyCode(Arg1:=wdKeyControl, Arg2:=wdKeyZ), KeyCategory:=wdKeyCategoryMacro, _
Command:="newmacros.test"

And I don't know how to... undo it!!! :p

I wanted to program CTRL+Q and I typed Z instead, without realizing...

I try to change the situation going into the "Personalize Keyboard" of Word (sorry, my Word is in French so I don't know the exact name) but I cant' find the option "Undo" in any list. I could click on the option "Restore everything" but I have so many personalized shortcuts, I don't want to loose them all.

Helpppp!!

Thank you!!

Souriane

Souriane
06-11-2021, 07:17 AM
Yeah!! I found it myself :thumb

I went on an another computer and played this code


CustomizationContext = NormalTemplate
MsgBox FindKey(BuildKeyCode(wdKeyControl, wdKeyZ)).Command


And it gave me the name of the function I was looking for : "EditUndo".

I was searching for just "Undo" this is why I could find it!

Bye!