Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2014, 07:27 AM
steveneashcraft steveneashcraft is offline How to suppress saveas dialog from VB6 Windows 7 64bit How to suppress saveas dialog from VB6 Office 2010 64bit
Novice
How to suppress saveas dialog from VB6
 
Join Date: May 2014
Posts: 8
steveneashcraft is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
The prompt is most likely due to the fact that the document was originally opened in one format and is being saved in another but you're not releasing the version in its original format. I would expect Word to behave this way in all versions. All you need do is change:
WW.ActiveDocument.Close
to:
WW.ActiveDocument.Close False

PS: I also note that, although you have:
FileName = "C:\tmp\test.doc
you don't use it in:
WW.activedocument.SaveAs FileFormat:=SaveFormat
So are you saying that changing the close statement which is executed after the saveas is going to solve my problem? Since the save dialog is displayed prior to calling the close and the application is waiting for the save dialog to be completed your suggestion doesn't make sense to me.



But like any good newby I tried it which you obviously didn't and it didn't help which was not much of a surprise.

I really appreciate your time and effort in looking at my problem.
Reply With Quote
Reply

Tags
save as, suppress



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Word's Save and SaveAs commands Catty Word VBA 6 03-19-2014 03:21 AM
How to suppress saveas dialog from VB6 Saveas error handling jillapass Word VBA 7 03-30-2012 03:24 PM
How to suppress saveas dialog from VB6 saveAs ChDir _ tinfanide Excel Programming 4 11-05-2011 01:40 AM
Suppress Dialog Box crutch024 Word 0 08-17-2010 09:52 AM
How to suppress saveas dialog from VB6 Suppress "do you want to save?" dialog on close rnstewart Excel 2 12-28-2005 04:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:34 PM.


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