D
Dennis Jones
Hi there,
I posted this bug about a month ago is this newgroup and thought I had a
workaround. I don't. The workaround does not work.
Essentially, with Word XP (SP1 and SP3) if, in code, you:
- intercept a keystroke (e.g. Tab)
- select some text (I found the problem only showed by selecting text from
the10th paragraph on)
- display some text on the status bar
Word will ignore the first keystoke. My workaround was to use SendKeys to
send the first keystroke (I was going to use Esc) but that keystroke removes
the status bar text ... catch-22.
Here are the steps to reproduce the bug. How do I submit this to Microsoft
so that it will be fixed (at some point in the future)?
Thanks, Dennis
**************************************
1. In Word XP, create a new document and enter in at least 10 paragraphs of
text.
2 Add a module with these procedures:
Public Sub Setup()
CustomizationContext = ActiveDocument
With KeyBindings
.ClearAll
.Add wdKeyCategoryMacro, "Testeroo", BuildKeyCode(wdKeyTab)
End With
End Sub
Sub Testeroo()
StatusBar = "Some Text"
ActiveDocument.Paragraphs(10).Range.Select
End Sub
3. Run the Setup sub.
4. In the document, press Tab. Paragraph 10 is selected.
5. Type a single letter ... nothing happens. If you continue to type, all
subsequent characters are entered normally.
NOTE: For me, this bug does not appear for paragraphs 1 through 9! Only from
10 onward! Some users have reported that this bug shows up in all
paragraphs)
I posted this bug about a month ago is this newgroup and thought I had a
workaround. I don't. The workaround does not work.
Essentially, with Word XP (SP1 and SP3) if, in code, you:
- intercept a keystroke (e.g. Tab)
- select some text (I found the problem only showed by selecting text from
the10th paragraph on)
- display some text on the status bar
Word will ignore the first keystoke. My workaround was to use SendKeys to
send the first keystroke (I was going to use Esc) but that keystroke removes
the status bar text ... catch-22.
Here are the steps to reproduce the bug. How do I submit this to Microsoft
so that it will be fixed (at some point in the future)?
Thanks, Dennis
**************************************
1. In Word XP, create a new document and enter in at least 10 paragraphs of
text.
2 Add a module with these procedures:
Public Sub Setup()
CustomizationContext = ActiveDocument
With KeyBindings
.ClearAll
.Add wdKeyCategoryMacro, "Testeroo", BuildKeyCode(wdKeyTab)
End With
End Sub
Sub Testeroo()
StatusBar = "Some Text"
ActiveDocument.Paragraphs(10).Range.Select
End Sub
3. Run the Setup sub.
4. In the document, press Tab. Paragraph 10 is selected.
5. Type a single letter ... nothing happens. If you continue to type, all
subsequent characters are entered normally.
NOTE: For me, this bug does not appear for paragraphs 1 through 9! Only from
10 onward! Some users have reported that this bug shows up in all
paragraphs)