Consulting

Results 1 to 2 of 2

Thread: CTRL+Z changed inadvertently

  1. #1

    Unhappy CTRL+Z changed inadvertently

    Hi!

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

    With Application.KeyBindings   .Add KeyCode:=BuildKeyCode(Arg1:=wdKeyControl, Arg2:=wdKeyZ), KeyCategory:=wdKeyCategoryMacro, _
       Command:="newmacros.test"
    And I don't know how to... undo it!!!

    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

  2. #2
    Yeah!! I found it myself

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •