Hello all,
I am trying to import a text file onto Excel, and I would like the user to point where the file is:
Code:
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\HERE_IT_IS.txt", _
Destination:=Range("A1"))
.Name = "1.RNC_EXPORT"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
I would like to add a command that throws a browser window where the user can click on and locate the file himself. Like the "File - Open" command in excel.
Is this doable?
Cheers