Hi guys,
How do I write Data from Text file to Excel?
Best regards,
Lwin Moe Aung
Hi guys,
How do I write Data from Text file to Excel?
Best regards,
Lwin Moe Aung
Follow the Steps
Could you provide source code?Thanks
That will be based on input file. You just provide me sample input i will write workflow for the same.
Thanks
attempt first, if you get stuck ask help
Thanks for reminding bro but the one who asked the question and me are developing a robot together.So,if I’ve something wrong,I’m sorry.
I tried this it’s works.if we want datarow with more than 2 columns like name value place then how add datarow - {item.split("“c).first,item.split(”"c).last} will be coded.can u guide us.
Split is a function from which i can split a string and make it into array of string, from which i can get the data through index
Example : If you see text file it has data like aa 5 as follow
So , If you see the code first, what i did is
item.split(" "c).first means :
Item = aa 5
Split(" "c) = it will split item through space and add it into array so now
" aa , 5" is value
c = ToCharArray
.first = First index of array
.last = Last index of array
and if you want something from 2 , 3 , 4 … index in this case: You can write like this item.split(" "c)(2)
example : aa 5 name xyz phone 234
and you want xyz so, you gonna write : item.split(" "c)(3)
Hi @111125,
Please check the following Robot.
If you need further advice, don’t hesitate to drop message
Have a nice dayForum 001.7z (18.4 KB)
Thanks a lot !!
But I need to separate each data into each cell
Not all data in a cell…
Hi
What do you mean?
Do you have the result file that you expected? I need it to understand your requirement
Hi
I think you can use this excel formula to split your column (not necessary using robot).
Once you confirm the result is correct (splitting text base on number of character) then we can proceed to design the robot to run the macro and produce this file.
Thank you
Result.xlsx (13.5 KB)