Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Capturing a file path
I want to perform a particular action the contents of a folder that the user
chooses. So I show the dialog box Application.Dialogs(xlDialogOpen).Show But how to I capture the folder they select to a string variable? For example: sChosenFolder = "L:\ExcelFiles\Sept04\" Thanks in advance Daniel |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Capturing a file path
Try this
Sub test() With Application.FileDialog(msoFileDialogOpen) .Show MsgBox .SelectedItems(1) End With End Sub Good Luck! Erik BZ "Daniel Bonallack" <Daniel wrote in message ... I want to perform a particular action the contents of a folder that the user chooses. So I show the dialog box Application.Dialogs(xlDialogOpen).Show But how to I capture the folder they select to a string variable? For example: sChosenFolder = "L:\ExcelFiles\Sept04\" Thanks in advance Daniel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
File Path Too Long? Not Anymore! Check out Long Path Tool | Excel Discussion (Misc queries) | |||
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo | Excel Discussion (Misc queries) | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
Excel updating from XML file - file path specific? | Excel Discussion (Misc queries) | |||
How set file open path to filepath of file opened with Explorer ? | Excel Programming |