View Single Post
 
Old 11-05-2022, 04:38 AM
Testeris Testeris is offline Windows 10 Office 2016
Novice
 
Join Date: Nov 2022
Posts: 8
Testeris is on a distinguished road
Default

I guess my VBA misses smth. See another problem, maybe related. Recorded it, but when running, error.



Sub aMakePlainText()
'
' aMakePlainText Macro
'
'
Selection.HomeKey Unit:=wdStory
Selection.WholeStory
Selection.Cut
Selection.PasteAndFormat (wdFormatPlainText) '<-- error here
Selection.HomeKey Unit:=wdStory
End Sub


Stops at PasteAndFormat, error 4198
Reply With Quote