ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Getopenfile (https://www.excelbanter.com/excel-programming/403204-getopenfile.html)

jln via OfficeKB.com

Getopenfile
 
Right now i have it so the user can browser for the folder they want then
select a file. I want to change this to going to

Q:\FTP\as400\exports\production\

then select the folder and file.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200712/1


Jim Rech[_2_]

Getopenfile
 
Use ChDrive and ChDir to change the current drive and folder. Then show the
file open dialog.

--
Jim
"jln via OfficeKB.com" <u25956@uwe wrote in message
news:7d2b6b658db9f@uwe...
Right now i have it so the user can browser for the folder they want then
select a file. I want to change this to going to

Q:\FTP\as400\exports\production\

then select the folder and file.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200712/1




jln via OfficeKB.com

Getopenfile
 
IUS this what you mean?


ChDir ("Q:\FTP\as400\exports\production\inv" & _
Inv & "\")
myFileName = Application. _
GetOpenFilename(filefilter:="csv Files, *.CSV", _
Title:="Pick a File (Select your MAR")

Jim Rech wrote:
Use ChDrive and ChDir to change the current drive and folder. Then show the
file open dialog.

Right now i have it so the user can browser for the folder they want then
select a file. I want to change this to going to

Q:\FTP\as400\exports\production\

then select the folder and file.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200712/1


Jim Rech[_2_]

Getopenfile
 
You have to use ChDrive to (unless you're certain Q: is already active).

--
Jim
"jln via OfficeKB.com" <u25956@uwe wrote in message
news:7d2cb7a90e2a6@uwe...
IUS this what you mean?


ChDir ("Q:\FTP\as400\exports\production\inv" & _
Inv & "\")
myFileName = Application. _
GetOpenFilename(filefilter:="csv Files, *.CSV", _
Title:="Pick a File (Select your MAR")

Jim Rech wrote:
Use ChDrive and ChDir to change the current drive and folder. Then show
the
file open dialog.

Right now i have it so the user can browser for the folder they want
then
select a file. I want to change this to going to

Q:\FTP\as400\exports\production\

then select the folder and file.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200712/1





All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com