Hi,
I have a text file with 20 'columns' or 'categories' and 5470 line items. The file contains raw data for 5470 municipal bonds. What I would like to achieve is to read the data in to VBA in order to aggregate it into its individual categories.
The end result is to ultimately be able to create a UserForm in which the user can input a maturity date of say "2 years" and have the model display all bonds with a maturity of 2 years or less, or input market price $100, and have the model display all bonds with a price of $100 or less.. etc. etc.
I've done much research on this.. but can't seem to find a way to aggregate the raw data correctly, or even read the data as I'd like correctly.. so hopefully somebody here can help me out!
This is my current code for "reading the text" into VBA, but putting a "watch" on my sText shows that every time it loops.. my data gets written over with the next line item. I also figure I need vbTab to split my data.. but don't know how/where to implement it. I have also attached a sample .txt file with 6 or 7 line items.
Please advise, any help would be appreciated immensely!Please Login or Register to view this content.
Sample.txt
Bookmarks