PDA

View Full Version : SaveAs2 Error 4198 Command Failed



gmaxey
06-23-2018, 09:03 PM
I'm getting an error anytime I try to SaveAs a template or template macro enabled format. Anyone seeing this issue?

Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey, http://gregmaxey.com/word_tips.html, 6/23/2018
On Error GoTo ErrHandler
ActiveDocument.SaveAs2 FileName:="Test", FileFormat:=wdFormatXMLTemplate
ActiveDocument.SaveAs2 FileName:="Test", FileFormat:=14
ActiveDocument.SaveAs2 FileName:="Test", FileFormat:=wdFormatXMLTemplateMacroEnabled
ActiveDocument.SaveAs2 FileName:="Test", FileFormat:=15
lbl_Exit:
Exit Sub
ErrHandler:
MsgBox Err.Number & " " & Err.Description
Resume Next
End Sub

Paul_Hossler
06-24-2018, 04:57 AM
No problems here

MIght be a conflict with some addin(?) -- try it bare bones and see

gmaxey
06-24-2018, 05:58 AM
Paul,
Thanks. I should have rebooted the PC before posting. That seems to have resolved the issue.