M
mccaskey
This is too weird.
Open a new word document. Enter a few characters.
Open VB and enter this subroutine:
Sub deleteChar()
Dim a as Range
Set a = ActiveDocument.Range(Start:=1, End:=2)
a.Delete
End Sub
Run the routine. As expected, the second character of your string will
be deleted . . .
.. . . unless the first character is ! and the second is a space, in
which case nothing happens.
If the first character is ! and the second is not a space, the routine
will replace your second character with a space.
The same happens if the first character is a right double quotation
mark (Alt + 0148).
What's going on?
Can anyone else reproduce this? I've tried it with two releases of
Word 2003.
Open a new word document. Enter a few characters.
Open VB and enter this subroutine:
Sub deleteChar()
Dim a as Range
Set a = ActiveDocument.Range(Start:=1, End:=2)
a.Delete
End Sub
Run the routine. As expected, the second character of your string will
be deleted . . .
.. . . unless the first character is ! and the second is a space, in
which case nothing happens.
If the first character is ! and the second is not a space, the routine
will replace your second character with a space.
The same happens if the first character is a right double quotation
mark (Alt + 0148).
What's going on?
Can anyone else reproduce this? I've tried it with two releases of
Word 2003.