View Single Post
 
Old 02-05-2023, 02:24 PM
AlanCantor AlanCantor is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Nov 2020
Posts: 137
AlanCantor is on a distinguished road
Default

Quote:
Good catch!

I hadn't noticed the PasteTextOnly command before, but I am assuming that it has been around for years.
I wish I had an old version of Word to check this. I've been customizing Word for 25+ years, and until now, not noticed "PasteTextOnly." I've always used VBA to achieve this. I don't think I've updated this code in decades:

Code:
Sub PasteVerySpecial()
    Selection.PasteSpecial Link:=False, DataType:=wdPasteText, Placement:= _
        wdInLine, DisplayAsIcon:=False
End Sub

I wouldn't be surprised to find out that the "PasteTextOnly" command was added relatively recently. I think I would have spotted it in Word 2007 and 2010. I spent significant amounts of time messing with both.
Reply With Quote