Results 1 to 10 of 10
  1. #1
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Menu Procedures (Word 2000)

    I created a macro in Normal.dot called InsertBreak. Now when I select the Insert | Break menu, it runs my macro instead of displaying the Insert Break dialog. Obviously, I can fix this (which I did) by changing the macro name to InsertBreak2, but this looks like a useful feature. Is it a documented feature? Are there standard names for each menu selection? Is this a good thing to do or will it get me in trouble? TIA --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  2. #2
    Star Lounger
    Join Date
    Mar 2002
    Location
    North Carolina, USA
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Menu Procedures (Word 2000)

    You can look up the standard names by going to Tools | Customize | Commands and selecting AllCommands.

    I think the trouble you can get into would be limited, if a macro of yours doesn't work right, you can rename it as you did with InsertBreak.

    Or even more thorough, before you start making macros under standard command names, make a backup copy of your NORMAL.DOT that you could restore if you needed to reimplement the standard commands quickly.

    LewisFan

  3. #3
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: Menu Procedures (Word 2000)

    Hi Sam,

    There's an article on Intercepting the Save and Print commands that addresses how to do this on the Word MVP FAQ site.
    Charles Kyle Kenyon
    Madison, Wisconsin

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Menu Procedures (Word 2000)

    Also from the MVP's site, you can download a list of the commands in *.xls or *.pdf format.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

  5. #5
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Menu Procedures (Word 2000)

    <img src=/w3timages/blackline.gif width=33% height=2>
    > Press Alt+Ctrl+Num pad + (to change the cursor to a cloverfield)
    <img src=/w3timages/blackline.gif width=33% height=2>

    For those (like me) who thought a cloverfield was part of the farm, but not Word:
    Press <Alt> <Ctrl> and the <Plus sign on the Keypad> all at the same time and the pointerwill turn into a flower, a cloverfield or a chain-link fence (WHY Phil?). Then if you try to make a menu selection, the pointer will turn back to an arrow on the upper-level menus, but revert back to a cloverfield on the bottom-level. If you make this selection, then you get the Customize Keyboard dialog box for that item. (is there a "standard" way to get this dialog box?)

    Thanks, Phil! I'm sure that 99.9% of us never knew about cloverfields! (Of course, 99.89% of them don't care, but I thought it was cool!) Where do the people at Redmond come up with stuff like this?
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  6. #6
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Menu Procedures (Word 2000)

    I've been trying for several months (off and on, of course <img src=/S/grin.gif border=0 alt=grin width=15 height=15>) a way to get the Command that's called by a Control (toolbar button, menu item...).

    Alt+Ctrl+(Num)+ somehow does it, but up to now it escapes me how to do it with VB.

    The most likely method, .OnAction, returns an empty string.
    Has anybody found a solution?

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus

  7. #7
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Menu Procedures (Word 2000)

    Hi Sammy:
    Hmmm. I guess it's just a clover, but when I leave my glasses off, it turns into a whole field. <img src=/S/rofl.gif border=0 alt=rofl width=15 height=15>...or maybe it is a farm. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  8. #8
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Menu Procedures (Word 2000)

    Especially after a few glasses of wine <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  9. #9
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Menu Procedures (Word 2000)

    <hr>Especially after a few glasses of wine<hr>
    Sometimes that's the only way to solve problems. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  10. #10
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Finding Command Names & Assigned Shortcut Keys

    Hi Sammy:
    If you want to know the name that Word uses for a given command that is on a menu, a toolbar, or assigned to a shorcut key, here's an easy way.

    1. Press Alt+Ctrl+Num pad Plus (the cursor changes to a cloverleaf).
    2. Then do one of the following:
    a. Click a toolbar button.
    b. Click a menu, & when it opens, click on a menu command.
    c. Press a shorcut key combination (like Ctrl+B, etc.).

    The shortcut key dialog box will open for the corresponding command. While most people think of this as a way of learning which shortcut key, if any, is assigned to a command, the dialog box also lists the name of the command.

    For example, suppose you want to know the name of the command that Word uses to display the Insert/Break dialog box. If you press Alt+Ctrl+NumPad Plus & then click Insert/Break, the ToolsCustomizeKeyboardShortcut dialog box pops up with the command InsertBreak.

    To find out the default keyboard shortcuts in Word, just start Word from Start/Run... & type winword.exe /a and press <enter>. Then you can run the Word command ListCommands (press Alt+F8 & then scroll to ListCommands under Macros in...) to find out what the default keyboard shortcuts were.

    Cheers,

Posting Permissions

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