Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to create a Macro that will open a file, which could be located anywhere the user saves the file. I was able to use: Do fName = Application.GetOpenFilename Loop Until fName < True Which works fine but when I doucle click on a file, it doesn't open the file. So I know I'm missing more coding. I need to open the file in Text TAB Delimited which Treat CONSECUTIVE DELIMETERS as one. I also used a different code Workbooks.OpenText Filename:="M:\ZQCMTEST.XLS", Origin:=xlWindows, _ StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _ ConsecutiveDelimiter:=True, Tab:=True, Semicolon:=False, Comma:=False, _ Space:=False, Other:=False, FieldInfo:=Array(Array (1, 2), Array(2, 1), Array( _ 3, 2), Array(4, 1), Array(5, 1), Array(6, 1), Array (7, 1), Array(8, 1), Array(9, 1), Array(10 _ , 1)) Which opens a specific file, but since the file location might be different, I would like for the user to search for the file and open as tab delimited. Any help would be very appreciated. Thanks, Juan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Excel Discussion (Misc queries) | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Setting up and Configuration of Excel | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
In Excel - Use Windows Explorer instead of File Open to open file | Excel Discussion (Misc queries) | |||
How do I stop Excel from closing the open file each time I open a. | Setting up and Configuration of Excel |