Jami
Is this the type of thing that you mean
Ton
getfilename = InputBox("Enter the file name including path", , "c:\temp\aaa.txt"
Workbooks.OpenText FileName:=getfilename, Origin:=xlWindows,
StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote,
ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:=False
, Space:=False, Other:=True, OtherChar:=":", FieldInfo:=Array(Array(1, 1
), Array(2, 1), Array(3, 1)
----- Jamie Abbamont wrote: ----
Hi. I'm new to writing macros, and I've been asked to write a macro that imports colon delimited text files into excel. I need to create the macro so that the user is prompted for the file to import. I used the macro recorder, but I cannot get it to work using a variable. Can anyone lend a hand
-Jamie