Bizarre error with .Information() function

J

Jezebel

I have a VB app that works with Word (W2000). At one point the app responds
to user action within a table, and uses this instruction:

If pSelRange.Information(wdAtEndOfRowMarker) Then
...

(pSelRange refers to the user's selection.)

Following this instruction, regardless of whether it returns true or not:

1) The *second* keystroke pressed is tripled (eg you type 'AB' and Word
displays 'ABBB'). Only the second, not the first, third or subsequent.

2) If you tab out of the last cell in the table, Word creates new rows
repeatedly until it crashes.


If the instruction is commented out, the problem does not appear. Has anyone
seen anything remotely similar?
 
D

Doug Robbins - Word MVP

Hi Jezebel,

I can't reproduce the problem with just that bit of the code, but shouldn't
you be testing for a value?

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Jezebel

Not sure I understand you. Testing what for a value? The function returns
TRUE or FALSE, similar to .Information(wdWithinTable). The procedure as a
whole appears to function correctly; the strange behaviour appears
subsequently, as far as I can tell solely as a result of asking the
question. Very odd.
 
D

Doug Robbins - Word MVP

Hi Jezebel,

Oops, I was playing around with Information(wdEndOfRangeRowNumber).
Eyesight's not what it used to be.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top