View Single Post
 
Old 07-30-2021, 03:40 PM
drrr drrr is offline Windows 10 Office 2019
Novice
 
Join Date: Jul 2021
Posts: 9
drrr is on a distinguished road
Default Word 2019 macro not working error 4198 command failed

Sub Macro1()
'
' Macro1 Macro
'
'
Selection.Cut
Selection.TypeText Text:="{{c1::"
Selection.PasteAndFormat (wdFormatPlainText)
Selection.TypeText Text:="}}"
Selection.TypeParagraph
End Sub


it fails at the pasting stage
i tried the automatic paste and plainText paste but same failed result
Reply With Quote