I'm using Word 2003 and I can't get these simple commands to work the way I
expect:
Sub temp()
ChDrive "J"
ChDir "J:\JOBS\"
End Sub
I thought that after running this, I could do a "File Open" and the dialog
box would be looking at the J:\JOBS folder. Instead, it's looking at the root
of C: or the last folder I selected manually.
I'd appreciate an explanation, and the real method to change the current
directory using VBA.
Thanx in advance.

Signature
JohnTheTemp
Greg Maxey - 26 Feb 2006 23:04 GMT
Try:
Sub ScratchMacro()
Options.DefaultFilePath(Path:=wdDocumentsPath) = _
"J:\Jobs\"
End Sub

Signature
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
> I'm using Word 2003 and I can't get these simple commands to work the
> way I expect:
[quoted text clipped - 12 lines]
>
> Thanx in advance.