I have a text file which includes lines of text as shown below:
21599999902230123129285103920952123456789DOE, JOHN 0000000000000000000000000000000000000000000000000000000000000000000P019680201202112080000000000164221642200085013959
21599999902230123129326103860439123456788SMITH, JANE D0000000000000000000000000000000000000000000000000000000000000000000P019811011202111090000000000086460864600030002594
There can be an unlimited amount of lines in this text file. I have a working macro to split the information the way I need but I would like to add some vba to import the information automatically. Text file name will change every time and the import needs to keep each individual line separate from the previous. Number of characters per line can also vary. Insert into Excel will start at cell A1.
Currently, I am opening the text file, Ctrl A, copying and manually pasting into Excel, then I run the current macro which splits the data into columns and sheets.
Thanks for the help!
21599999902230123129285103920952123456789DOE, JOHN 0000000000000000000000000000000000000000000000000000000000000000000P019680201202112080000000000164221642200085013959
21599999902230123129326103860439123456788SMITH, JANE D0000000000000000000000000000000000000000000000000000000000000000000P019811011202111090000000000086460864600030002594
There can be an unlimited amount of lines in this text file. I have a working macro to split the information the way I need but I would like to add some vba to import the information automatically. Text file name will change every time and the import needs to keep each individual line separate from the previous. Number of characters per line can also vary. Insert into Excel will start at cell A1.
Currently, I am opening the text file, Ctrl A, copying and manually pasting into Excel, then I run the current macro which splits the data into columns and sheets.
Thanks for the help!