From: Libcub on 4 Apr 2010 21:25 I recorded a macro that adds a rightward arrow (U+2192) and then a no-width optional break. (Macro code is below.) I have 2 shortcut keys assigned to it: Ctrl+\ and Ctrl+F11. The Ctrl+F11 shortcut key works fine. But the Ctrl+\ shortcut only supplies the arrow character, and not the no-width optional break. Why the heck is the macro behaving differently depending on which shortcut key invokes it? Thanks for any light shed on this! Macro: Sub atest() ' ' atest Macro ' ' Selection.InsertSymbol Font:="Book Antiqua", CharacterNumber:=8594, Unicode:=True Selection.InsertSymbol CharacterNumber:=8204, Unicode:=True, Bias:=0 End Sub
From: Suzanne S. Barnhill on 5 Apr 2010 09:22 FWIW, you don't need a macro. You could just as easily do this with an AutoCorrect entry. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Libcub" <Libcub(a)discussions.microsoft.com> wrote in message news:7809C195-A549-4B09-B189-B978C383C31E(a)microsoft.com... >I recorded a macro that adds a rightward arrow (U+2192) and then a no-width > optional break. (Macro code is below.) I have 2 shortcut keys assigned to > it: > Ctrl+\ and Ctrl+F11. The Ctrl+F11 shortcut key works fine. But the Ctrl+\ > shortcut only supplies the arrow character, and not the no-width optional > break. Why the heck is the macro behaving differently depending on which > shortcut key invokes it? > > Thanks for any light shed on this! > > Macro: > Sub atest() > ' > ' atest Macro > ' > ' > Selection.InsertSymbol Font:="Book Antiqua", CharacterNumber:=8594, > Unicode:=True > Selection.InsertSymbol CharacterNumber:=8204, Unicode:=True, Bias:=0 > End Sub > >
From: Libcub on 5 Apr 2010 12:06 I want to able to have the no-width optional break selectively, one shortcut giving just the arrow, and another giving both the arrow and the optional break. A macro seemed the best solution.
From: Suzanne S. Barnhill on 5 Apr 2010 13:27 Well, you can certainly have two AutoCorrect entries. Or you can assign a keyboard shortcut to the No-Width Optional Break alone (select it on the Special Characters tab of Insert | Symbol and click Shortcut Key...). -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Libcub" <Libcub(a)discussions.microsoft.com> wrote in message news:0DD5095F-87D0-40E9-A776-54224D7CF2D2(a)microsoft.com... >I want to able to have the no-width optional break selectively, one >shortcut > giving just the arrow, and another giving both the arrow and the optional > break. A macro seemed the best solution. >
|
Pages: 1 Prev: Nickel's Intro Thread Next: How to creater a "center gutter" (like you see in movie end credit |