Hi Tony - It's not keystrokes per se, it's assigning a custom hotkey to a
(different-in-2007) series of keystrokes to do what the hotkey used to do. If I
assign any ALT+letter combination to a macro that uses SendKeys, the SendKeys
lines misbehave. For example, say a macro contains:
SendKeys "%"
SendKeys "x"
SendKeys "s"
If this macro is run from the Macro dialog, or from a button assigned to it on
the QAT, or via an assigned hotkey combination that *isn't* of the form
ALT+something, it runs as intended -- that is, it runs the command that bears
the S accelerator on the AddIns tab. But if I assign, say, ALT+D to that macro,
pressing ALT+D just types "xs" (or sometimes just "s") into the active document.
I'm not that freaked out about this & have always wanted to nail SendKeys to the
wall and torture it anyway. It's just strange that ALT+whatever hotkey
combinations seem to fail substantially more often now if assigned to a
SendKey-exploiting macrom
MT.
Tony said:
What keystrokes from 2003 can you not use in 2007?
--
Enjoy,
Tony
www.WordArticles.com
Hm. OK, this works, but I notice I can't then reassign this code to any
ALT+Letter combination. Other hotkey-plus-letter combination work fine, but
ALT+anything seems crippled.
This is perhaps an bizarre/futile quest, but I'm trying to duplicate a few
2003 custom menu keystrokes for a user who's been thoroughly traumatized by the
ribbon (more traumatized than I was, which was considerably). So I'm attempting
to map a few items now on the Add-Ins tab (ALT, X, etc) to the combinations
she's used to.
In Word 2003 no ALT+Letter shortcuts were ever intercepted or ignored. Any
clues how to make that happen again?
releasing of the ALT key, or alternatively, to activate a specified tab of the
ribbon?