Re: Word VBA - wdDialogFileOpen can I specify path?
- From: "Dr. Stephan Kassanke" <kassanke.news@xxxxxx>
- Date: Thu, 21 Jul 2005 21:56:40 +0200
"mr tom" <mr-tom at mr-tom.co.uk.(donotspam)> schrieb im Newsbeitrag
news:CE832E22-A51B-4DB5-8A9A-EA505BF300B1@xxxxxxxxxxxxxxxx
> Thank you.
>
> That would certainly filter the files to .doc (or .xls in the example),
> but
> doesn't allow me to specify a path.
> Any ideas how I can do that using Application.Dialogs
> (wdDialogFileOpen).Show (or similar)?
>
> Many thanks,
>
> Tom.
>
>>
>>
Hi Tom,
oh yes, it does allow you to specifiy the path.
.sFileTitle = vbNullChar & Space$(512) & _
vbNullChar & vbNullChar
.nMaxTitle = Len(OFN.sFileTitle)
'Starting folder, double-null terminated
.sInitialDir = ActivePresentation.Path & vbNullChar
.sDialogTitle = sTitle 'the dialog title string
set .sInitialDir to "c:\" or whatever and the dialog starts in that
directory.
Another example is
http://support.microsoft.com/default.aspx?scid=kb;en-us;161286
OpenFile.lpstrInitialDir = "C:\"
hth,
Stephan
.
- Follow-Ups:
- Re: Word VBA - wdDialogFileOpen can I specify path?
- From: mr tom
- Re: Word VBA - wdDialogFileOpen can I specify path?
- References:
- Word VBA - wdDialogFileOpen can I specify path?
- From: mr tom
- Re: Word VBA - wdDialogFileOpen can I specify path?
- From: Dr. Stephan Kassanke
- Re: Word VBA - wdDialogFileOpen can I specify path?
- From: mr tom
- Word VBA - wdDialogFileOpen can I specify path?
- Prev by Date: Re: Mouse Wheel Fix
- Next by Date: Template not appearing in VBA editor project explorer when doc ope
- Previous by thread: Re: Word VBA - wdDialogFileOpen can I specify path?
- Next by thread: Re: Word VBA - wdDialogFileOpen can I specify path?
- Index(es):
Relevant Pages
|