(Edited by Leif on 06-Mar-03 23:58. )
Cross-posted – and answered – here in the Word forum
To prevent duplicate and diverging threads, further replies there please.
I wrote a macro for Word 2000:
//////////////////////
Sub Macro1()
ActiveDocument.Range(Start:=5000, End:=5000).Paste
End Sub
/////////////////////
When I use this macro to paste an Autoshape (rectangel, oval, …), it causes “Run-time error 4198”. But if I reduce the number to the range of the 1st page, it works. Why this macro only runs when the spcified range is within the 1st page. And if I pasted text or bitmap, no error happens. Anyone knows how such strange thing happens?