hstijnen
Mon Apr 25 07:39:01 CDT 2005
Hi Jean-Guy,
By occasion I've found the answer for my Enterkey problem in
http://support.microsoft.com/kb/q187985/
the key code is:
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyReturn), _
KeyCategory:=wdKeyCategoryMacro,
Command:="Normal.styles.EnterKeyMacro"
and in Normal.styles.EnterKeyMacro I can place the code I want: if one hits
Enter in a bulleted list and the paragraph is empty, then I only change the
style of the paragraph. In all other cases I do a TypeParagraph.
I run the above code in Normal.dot and then all docs on normal.dot have the
desired binding.
Cheers,
Henk
"Jean-Guy Marcil" wrote:
> hstijnen was telling us:
> hstijnen nous racontait que :
>
> > ...what are you trying to do?
> > I've made a keybinding and macro to intercept the Enter. The goal is
> > when one is creating a list (bulleted, numbered), and hits Enter when
> > the (last) item is empty, the list is ended and the correct style is
> > set (to create distance between text and list). Thisworks pretty well.
>
> Interesting...
> If you have 5 minutes and don't mind, could you share your code?
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site:
http://www.word.mvps.org
>
>
>
>