View Single Post
 
Old 03-22-2015, 08:48 AM
Ahmed AbuZekry Ahmed AbuZekry is offline Windows XP Office 2010 32bit
Novice
 
Join Date: Mar 2015
Posts: 2
Ahmed AbuZekry is on a distinguished road
Default 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?
Reply With Quote