Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-22-2015, 08:48 AM
Ahmed AbuZekry Ahmed AbuZekry is offline VBS saveas API behaviour is different from Menu saveas Windows XP VBS saveas API behaviour is different from Menu saveas Office 2010 32bit
Novice
VBS saveas API behaviour is different from Menu saveas
 
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
 

Tags
doc2docx, saveas, vbs

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBS saveas API behaviour is different from Menu saveas SaveAs docm file from template ptmuldoon Word VBA 7 03-09-2015 05:38 PM
wordapp.ActiveDocument.SaveAs Not Working KSReynolds Mail Merge 1 07-18-2014 04:03 PM
VBS saveas API behaviour is different from Menu saveas How to suppress saveas dialog from VB6 steveneashcraft Word VBA 15 05-09-2014 07:01 AM
VBS saveas API behaviour is different from Menu saveas Saveas error handling jillapass Word VBA 7 03-30-2012 03:24 PM
VBS saveas API behaviour is different from Menu saveas saveAs ChDir _ tinfanide Excel Programming 4 11-05-2011 01:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft