Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 05-09-2014, 07:01 AM
macropod's Avatar
macropod macropod is offline How to suppress saveas dialog from VB6 Windows 7 32bit How to suppress saveas dialog from VB6 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


I can't test the way you describe, because I have both Word 2003 & Word 2010 installed on my system and automation starts Word 2003. However, the following should resolve the issue:
Code:
Dim WW
Dim FileName
Dim SaveFormat
SaveFormat = 0
FileName = "C:\tmp\sample."
FileCopy FileName & "doc", FileName & "rtf"
Set WW = CreateObject("Word.Application")
WW.Visible = True
WW.Documents.Open FileName & "rtf"
Call WW.ActiveDocument.SaveAs(FileName & "doc", SaveFormat)
WW.ActiveDocument.Close False
Kill FileName & "rtf"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
save as, suppress

Thread Tools
Display Modes


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 09:42 PM.


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