Sep 25, 2006 #1 kingz2000 Programmer May 28, 2002 304 DE Hi, can someone tell me the function I need to show a dialog for a user to enter a file path, say.. Thanks in advance
Hi, can someone tell me the function I need to show a dialog for a user to enter a file path, say.. Thanks in advance
Sep 25, 2006 #2 GlennUK MIS Apr 8, 2002 2,937 GB Do you mean just the file path? Or do you mean file path and file name? Cheers, Glenn. Did you hear about the literalist show-jumper? He broke his nose jumping against the clock. Upvote 0 Downvote
Do you mean just the file path? Or do you mean file path and file name? Cheers, Glenn. Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
Sep 25, 2006 Thread starter #3 kingz2000 Programmer May 28, 2002 304 DE I mean filepath & filename... Basically, the user is supposed to select a csv.file, and in my code I need the path & filenmae of the file. Upvote 0 Downvote
I mean filepath & filename... Basically, the user is supposed to select a csv.file, and in my code I need the path & filenmae of the file.
Sep 25, 2006 Thread starter #4 kingz2000 Programmer May 28, 2002 304 DE PLEAAASEE!!!??? Upvote 0 Downvote
Sep 25, 2006 #5 PHV MIS Nov 8, 2002 53,708 FR Have a look at the Application.GetOpenFilename method in Excel VBA. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Have a look at the Application.GetOpenFilename method in Excel VBA. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Sep 25, 2006 Thread starter #6 kingz2000 Programmer May 28, 2002 304 DE Hi, when I tried the procedure below, I got the error 'Method or data object not found' on 'GetOpenFilename'. What did I do wrong? Private Sub command5_Click() Dim varRetVal As Variant varRetVal = Application.GetOpenFilename( _ FileFilter:="Microsoft Excel-files(*.xls), *.xls", _ Title:="a file to open") If varRetVal = False Then Exit Sub On Error Resume Next Workbooks.Open FileName:=varRetVal On Error GoTo 0 End Sub Upvote 0 Downvote
Hi, when I tried the procedure below, I got the error 'Method or data object not found' on 'GetOpenFilename'. What did I do wrong? Private Sub command5_Click() Dim varRetVal As Variant varRetVal = Application.GetOpenFilename( _ FileFilter:="Microsoft Excel-files(*.xls), *.xls", _ Title:="a file to open") If varRetVal = False Then Exit Sub On Error Resume Next Workbooks.Open FileName:=varRetVal On Error GoTo 0 End Sub
Sep 25, 2006 #7 PHV MIS Nov 8, 2002 53,708 FR What did I do wrong? Perhaps playing with a too old version of XL ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
What did I do wrong? Perhaps playing with a too old version of XL ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Sep 25, 2006 Thread starter #8 kingz2000 Programmer May 28, 2002 304 DE I am using excel 2000 Upvote 0 Downvote
Sep 25, 2006 Thread starter #9 kingz2000 Programmer May 28, 2002 304 DE ..I mean Office 2000....hence Microsoft Access is also up-to date. Upvote 0 Downvote