Discussion:
Converting word document to xml
(too old to reply)
Bobby
2005-10-18 00:13:03 UTC
Permalink
Using VBA, I am trying to convert a word doc to xml. The creation happens
without a problem but when I try to open it using word I get an error in the
xml document.

Basically I create a new xml file using the file system object and dump the
contents using "ActiveDocument.Range.XML"

I am under tight deadline and any help would be greatly appreciated.
Bobby
2005-10-18 01:08:02 UTC
Permalink
BTW, I can't use the save-as. It is a limitation of one of the third party
app we are using.

thx
Post by Bobby
Using VBA, I am trying to convert a word doc to xml. The creation happens
without a problem but when I try to open it using word I get an error in the
xml document.
Basically I create a new xml file using the file system object and dump the
contents using "ActiveDocument.Range.XML"
I am under tight deadline and any help would be greatly appreciated.
Jean-Guy Marcil
2005-10-18 12:51:40 UTC
Permalink
Post by Bobby
BTW, I can't use the save-as. It is a limitation of one of the third
party app we are using.
Then it is a poorly designed add-in...

Since you seem to be in a rush, the easiest would be to temporarily
deactivate the add-in (Tools > Templates and Add-ins...), do a Save-as and
then reactivate the add-in.

You could activate/reactivate the add-in in code, but since you are in a
rush. it is probably not necessary.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
***@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Loading...