Jeff Johnson [MVP: VB]
3/7/2012 9:43:00 PM
"Karen Hart" <hartofhearing@gmail.com> wrote in message
news:6d361be3-259a-4775-924e-f35063003a7c@y17g2000yqg.googlegroups.com...
>I have a field in each record of an MSAccess database that contains
> the path for saving msword
> docs called txtPathForWordDocs. I have a command button that runs a
> vba procedure that assembles a document in MSWord and leaves the user
> in MSWord with the document on screen. When and if the user chooses to
> save that document, I would like MSWord to save the doc to the folder
> referenced in txtPathForWordDocs.
>
> How can I pass the info in txtPathForWordDocs and therefore and set
> the directory for saving to MSWord ?
>
> I posted this in the .access group, but so far, all I hear is crickets
> chirping.
> Thank you!
I seriously doubt there is a way to "pre-set" the output folder in Word. You
can probably control it if you are forcing the Save As dialog box to
display, but I'd be very surprised to find that you can set it "in the
background" and then have that folder be the active one when the user
eventually goes to save.
Also, I have to comment on how horrific it is that a field in a database
starts with "txt."