- #1
Saladsamurai
- 3,020
- 7
Go To Post #7 for new Question
So let's that I have a .txt file called input.txt that simply contains the following:
abc+123
I want to load input.txt using VBA into a 1-dim array called MyArray. I want each character to be an element of the array. That is a is MyArray(1), c is MyArray(3) "+" is MyArray(4) etc.
I am not sure about whitespace. If it is easier, whitespace could be considered a character.
Any ideas?
Edit: ALternatively, each charecter could got to a cell...I just can't figure out how to set the dilmeter since there is not one...
So let's that I have a .txt file called input.txt that simply contains the following:
abc+123
I want to load input.txt using VBA into a 1-dim array called MyArray. I want each character to be an element of the array. That is a is MyArray(1), c is MyArray(3) "+" is MyArray(4) etc.
I am not sure about whitespace. If it is easier, whitespace could be considered a character.
Any ideas?
Edit: ALternatively, each charecter could got to a cell...I just can't figure out how to set the dilmeter since there is not one...
Last edited: