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
@Rashmi
Thanks for your reply.
I will try it.
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.
@anug_kyaw_zin
Please find the attachment.
Main.xaml (13.7 KB)
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.
@Rashmi
Thank you very much.
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)
How can I write this text file into excel?
Please help…Thanks
test2.7z (438 Bytes)
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
SKlist.xlsx (11.1 KB)
Like this file
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)