A simple vba macro to import and correct a tab delimited text file
A simple vba macro to import and correct a tab delimited text file Recently a friend asked me to make a spreadsheet that imported a short tab delimited text file generated as a report from a commercial product and then made some calculations. We tried importing the page with Excel's `Import` menu item, but there were some corrections that had to be made (because of spurious extra tabs in the input text file). By writing a short vba macro, I: Could make this a one button operation Could correct the problems in the text globally before placing items in the cells I decided to share the code in the hope that it might save someone some time and grief in trying other approaches Google search, then hack away I tried to find an excel vba script that placed an item at a time in cells, but I could not find one easily, so I wrote the following Sub RoundedRectangle1_Click() Dim Ret Ret = Application.GetOpenFilename("Text Files (*.txt),*.txt") If Ret <> False Then ...