Quote:
Originally Posted by dfuent1321
I've suddenly experienced an error when running a macro I made to cut a selection, then paste it at the end of a document, then return to the original spot. It's worked for a long time, but now I get an error when I try to run it in some documents, including any new ones I make. I've searched the forum for a solution, but can't find anything close enough to my problem.
Thanks in advance!
Code:
Sub MoveToOutTakes()
'
' MoveToOutTakes Macro
'Selection.Cut
Selection.EndKey Unit:=wdStory
Selection.TypeParagraph
Selection.Paste
Application.GoBack
Application.GoBack
End Sub
|
When I tried to run code from the post I've got an error (Picture below). I found what it was caused by in my case. It was Punto Switcher program. It used for automatic keyboard layout switching, but also it has buffer history feature. I guess that some programs, that works with buffer remembering can somehow change it's content, so I would recommend to check all the programs that could interact with it and also checks programs, that could manipulate text formatting in buffer.