View Single Post
 
Old 10-24-2022, 08:16 AM
dfuent1321 dfuent1321 is offline Windows 10 Office 2021
Novice
 
Join Date: Oct 2022
Posts: 6
dfuent1321 is on a distinguished road
Default Help with debugging a simple macro to cut and paste selected text to end of document

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

Last edited by Charles Kenyon; 10-24-2022 at 06:34 PM. Reason: format code
Reply With Quote