I have an Excel workbook that processes model output from another program. That program produces space-delimited plain-text output files with a ".plt" extension. I have a data connection in Excel to bring those data in, but it requires more clicks than I would like. Currently the work flow is this:
- Run other model.
- In Excel, click Data->Refresh All
- In the file dialog box that opens, click on "Text Files (*.prn, *.txt, *.csv)"
- Pull Down appears - click on : "All Files (*.*)".
- Select file name from list (filename never changes - Always "Output.plt")
- Select "Import."
From here, it remembers all of the settings for the data connection - locations, text to columns, etc. Since my file name never changes, though, I wish it would remember the name of my file, so I would only have one or two clicks, instead of 5.
I tried to record a macro, going through all these steps, but the only piece that showed up in VBA is