Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default specify default path in dialog open box

I am using the Following to open a csv file. Is it possible to specify a
default directory path for the dialog box? For instance I would like the
box to open by default pointing to this directory K:\CSR\CDM

sfile1 = Application.GetOpenFilename("Text Files (*.csv), *.txt")
If sfile1 < "" Then
Open sfile1 For Input As 1
End If

THanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default specify default path in dialog open box

ChDrive "K:\CSR\CDM\"
ChDir "K:\CSR\CDM\"
sfile1 = Application.GetOpenFilename("Text Files (*.csv), *.txt")

HTH. Best wishes Harald

"Striker" skrev i melding
...
I am using the Following to open a csv file. Is it possible to specify a
default directory path for the dialog box? For instance I would like the
box to open by default pointing to this directory K:\CSR\CDM

sfile1 = Application.GetOpenFilename("Text Files (*.csv), *.txt")
If sfile1 < "" Then
Open sfile1 For Input As 1
End If

THanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Dialog Box to return Selected File Path and Not Open it. DMS Excel Programming 4 January 26th 10 12:46 PM
Setting a default path name under Save As Dialog Box Shams Excel Programming 1 July 28th 06 10:32 PM
open dialog box for file path krhyme[_14_] Excel Programming 1 August 22nd 05 10:31 PM
change default file path in Save As dialog box charles[_2_] Excel Programming 3 August 6th 04 03:03 AM
GetOpenFilename Dialog default path Arthlan Excel Programming 1 June 3rd 04 09:19 PM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"