Hello All, I need to create a program wherein I will be reading from a text file and then I'll print the characters in the Excel sheet. I can basically read and write to the excel sheet.
But there are certain fields where the details must be put.Problem is, I have a lot of characters that are chunked together which makes it hard for me to determine which details goes into which field.
To make it clear,
In my Excel sheet I have 3 Fields namely,
Column A = ID number (max of 8 characters)
Column B = Name (max of 10 characters)
Column C = Description (max of 20 Characters)
If the maximum length of characters are not all used up, then I can put spaces in it.
So in my text file that I will read, It has:
10827835Crisshinn QWERTY
wherein:
10827835 = ID number
Crisshinn = Name
QWERTY = Description
Notice that there is 1 space between "Crisshinn" and "QWERTY", this is the number of spaces that was printed in the textfile in order to complete all 10 characters.
However, the "10827835" and "Crisshinn" part are chunked together. Since the ID number detail must always have max of 8 characters. Therefore, it will always be chunked together with the Name detail. So How can I separate them and display it in the 2 columns?
I know I need to count the characters but I'm not too familiar on what function or how I should use it. Any help is greatly appreciated. Thank you :D
Bookmarks