Home › Forums › General XMetaL Discussion › xml property of ActiveDocument object and UTF-8 › Reply To: xml property of ActiveDocument object and UTF-8
Reply to: xml property of ActiveDocument object and UTF-8
July 14, 2010 at 7:19 pmChange the ActiveDocument.Save line to this:
Set rng = ActiveDocument.Range
rng.SelectAll
If (rng.ReadOnlyContainer = false) Then ActiveDocument.Save
(Again the declaration and cleanup of the rng variable is not included.)
This avoids the Save As dialog if the file is readonly.
Lee