Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 07-02-2018, 10:45 PM
gmayor's Avatar
gmayor gmayor is offline VBA Novice Windows 10 VBA Novice Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You could change the section in the code to


Code:
With Dialogs(wdDialogFileSaveAs)
     .Name = "V:\Inspections\2018\" & strName
     .Show
 End With
or you could replace that with

Code:
ActiveDocument.SaveAs2 "V:\Inspections\2018\" & strName
which will save the file without displaying the dialog, but it will overwrite an existing file of the same name and will crash if the folder doesn't exist.


You will find CreateFolders and FileNameUnique code on my web site to overcome these issues.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommended Reading for Novice callasabra Word VBA 3 07-06-2014 10:36 AM
VBA Novice Please help this novice. cupofjoe1962 Excel 2 09-16-2013 12:17 PM
VBA Novice Chart novice - help required clanger32 Excel 1 04-12-2012 09:35 AM
VBA Novice having problems with colours. Simoninparis Excel Programming 2 02-29-2012 03:28 AM
Two questions from a novice alexB Word 0 08-11-2010 08:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:47 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