View Single Post
 
Old 11-09-2020, 01:59 AM
alex100 alex100 is offline Windows 7 64bit Office 2016
Advanced Beginner
 
Join Date: May 2020
Posts: 79
alex100 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Why not create a custom undo record?
Well, this may work too, but the copy/paste function that I'd like to replicate is already integrated in a much larger macro. Switching to another solution would probably involve some other changes to this macro, and I'd like to avoid that as much as possible. Not to mention I never used Undo Record before...

The 'FormattedText' property seems perfect for what I need, only that I also need to be able to delete the original content prior to writing it back to the document, just like the copy/paste function works... you copy something with Ctrl + C, and then you are free to delete that content without automatically deleting it from the clipboard too. That's what I'm looking for.

Alex
Reply With Quote