T
Terry.Murphy3
Hi - I'm running Word 2000 sp3 on a pc running XP sp3 and have a macro that
selects a partial line of text and then is supposed to insert it 3 lines
further down the page:
Selection.MoveRight unit:=wdCharacter, Count:=44
Selection.MoveRight unit:=wdCharacter, Count:=32, Extend:=wdExtend
Selection.Cut
Selection.HomeKey unit:=wdLine
Selection.MoveDown unit:=wdLine, Count:=3
Selection.TypeText Text:=vbTab & vbTab & vbTab & vbTab & vbTab & vbTab & _
vbTab & vbTab
' move line right one character
Selection.TypeText Text:=" "
Selection.Paste
However, when the text is cut it disappears from the doc but is NOT placed
on the clipboard. Consequently the paste fails. Where does it go and how do
I get it back?
The real kicker is that it works about 2% of the time - but I don't know
when that 2% will happen...
Any help will be greatly appreciated -
Thanks - Terry
selects a partial line of text and then is supposed to insert it 3 lines
further down the page:
Selection.MoveRight unit:=wdCharacter, Count:=44
Selection.MoveRight unit:=wdCharacter, Count:=32, Extend:=wdExtend
Selection.Cut
Selection.HomeKey unit:=wdLine
Selection.MoveDown unit:=wdLine, Count:=3
Selection.TypeText Text:=vbTab & vbTab & vbTab & vbTab & vbTab & vbTab & _
vbTab & vbTab
' move line right one character
Selection.TypeText Text:=" "
Selection.Paste
However, when the text is cut it disappears from the doc but is NOT placed
on the clipboard. Consequently the paste fails. Where does it go and how do
I get it back?
The real kicker is that it works about 2% of the time - but I don't know
when that 2% will happen...
Any help will be greatly appreciated -
Thanks - Terry