Pergunta Keyboard shortcuts

  • Wednesday, June 27, 2012 11:39 PM
     
     

    In word 2007

    Is it possible to change where the cursor stops when you use ctrl right arrow? Can a macro be created that knows the difference between the next word and punctuation? I want the cursor to be at the end of the word I skip over whether there is punctuation or not.

All Replies

  • Tuesday, July 03, 2012 2:29 AM
    Moderator
     
     

    1st. We can create a macro which will move the cursor, and determine if there is balnk space or punctuation, and move left when there is.

    Sub MoveRight()
        Selection.MoveRight Unit:=wdWord, Count:=1
        'If there is a blank space in the left
            Selection.MoveLeft Unit:=wdCharacter, Count:=1
        'End if
        'If there is a punctuation in the left
            Selection.MoveLeft Unit:=wdCharacter, Count:=1
        'End if
    End Sub

    2nd. Then, we can assign short cut key to a macro, so when we press the Ctrl Right Arrow, it will run the macro

     

    For more detail about how to create the macro, I'd suggest to post the question in the forum for developers:

    http://social.msdn.microsoft.com/Forums/en-US/worddev/threads


    Max Meng

    TechNet Community Support