VBS saveas API behaviour is different from Menu saveas
I tried to write a simple VBS to open a .doc file and save it as .docx, and did the same from Menu items in Word. File size and XML contents in both cases are different. So it is a bug in saveas API or is there something missing ? I tried something like:
objDoc.SaveAs objFSO.BuildPath( outputDirectory, objFSO.GetBaseName( objFile ) & ".docx" ), wdFormatDocument
Is there anything missing in the saveas method to avoid this issue? Is there any way to make both files exactly match?
|