borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (assign new record source to a report)Next Topic (VBA Autocad) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : SaveAs & ChangeFileOpenDirectory
Poster Message
Antares
Level: Graduate

Registered: 29-07-2005
Posts: 9

icon SaveAs & ChangeFileOpenDirectory

I have a document named test.doc saved in C:\one.  I open that document in Word (2003).  Now I want a macro that shows the SaveAs dialog defaulting to C:\two instead of C:\one.  I've tried...

ChangeFileOpenDirectory "C:\two\"
Dialogs(wdDialogFileSaveAs).Show


...and...

Dialogs(wdDialogFileSaveAs).Name = "C:\two\"
Dialogs(wdDialogFileSaveAs).Show


...but those only seem to work on unsaved documents and not at all, respectively.  And not that it makes a noticeable difference either way but Tools > Options > File Locations > Documents is already set to C:\two.  Any suggestions?  

19-07-2006 at 11:21 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : SaveAs & ChangeFileOpenDirectory
Previous Topic (assign new record source to a report)Next Topic (VBA Autocad) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder