VBA Word Macro: Save As existing .docx file name with standard prefix -
i trying construct macro takes active document , saves same file name adds non-variable prefix.
the document working has hyperlinks, which, according internet, appears reason unable use code:
sub saveasdigital() ' ' flatten macro ' ' activedocument.saveas2 filename:=activedocument.path & application.pathseparator & "digital_" & activedocument.name end sub
this returns run-time error '4198' relates hyperlinks being present in document (i cannot afford rid of these)
any appreciated!thanks!
Comments
Post a Comment