Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-18-2005, 11:20 AM
Novice
 
Join Date: Dec 2005
Posts: 2
stevecarr
Default Documents saved to wrong folder

Background:

All I am trying to do is save a document to a particular folder. This works fine 90% of the time but the other 10% the file is saved somewhere else.



Usually in My Documents folder but not always !

Am I doing the right thing by first calling ChangeFileOpenDirectory then calling Save. Is there any way I can check which folder it is about to save to.


Code snippet:


Code:
Word.ChangeFileOpenDirectory "C:\Titanium Server\Documents"

oWordDocument.Save

This is really bugging me now. Any help would be really appreciated.
Reply With Quote
  #2  
Old 09-22-2011, 05:32 AM
OTPM OTPM is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 975
OTPM is on a distinguished road
Default

Hi
The first line of your code looks okay. However I would use this for the second line of your code:

ActiveDocument.Save

Tony
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making many documents one shikaku Word 1 05-03-2008 08:53 PM
Some Word documents open slower than others Mosaic Word 1 09-21-2007 02:53 PM
Documents Take 5 Minutes To Open Farrar Word 1 07-23-2007 02:54 PM
Mail Times Wrong bshow Outlook 1 01-17-2007 02:45 PM
Prinitng documents issue help? mikehende Office 0 11-29-2006 05:48 AM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft