Hi!
I wanted to copy a range of date in Sheet X file A to Sheet X file B (file B is an empty template utilizing numbers in Sheet X). Could you please provide some ideas? Thank you!
Hi!
I wanted to copy a range of date in Sheet X file A to Sheet X file B (file B is an empty template utilizing numbers in Sheet X). Could you please provide some ideas? Thank you!
Hi Buddy @fifi
Welcome to uipath community buddy
Great…
Thats all buddy you are done…
Kindly revert for any queries and clarifications
Cheers
Hi @fifi
Regards,
Vijay.
Hi! Thank you Palaniyappan! It work! Do you happen to know if after the write range activity if it is possible to save file B into another name as this is a template file. I would also wanted to create a loop to have different File As copied into File B. Is it possible?
Hi! Thank you Vijay! It works! Do you happen to know if after the write range activity if it is possible to save file B into another name as this is a template file. I would also wanted to create a loop to have different File As copied into File B. Is it possible?
yes buddy @fifi you can save it with new file just by using move file activity where pass the file b as source file path and new file name as destination path
like this
and to pass different file you can get like
Directory.Getfiles(“yourfolderpath”,“*.xlsx”) with assign activity with variable out_filepath of collection type like array of string
then use a loop to iterate through each file with for each loop and pass that variable to first excel application scope buddy @fifi very simple buddy
Cheers
yes it is possible. Please use Move File activity which will take two arguments.
one is From Path which is the source file and another is Destination path.
In destination path you give different name with Same Extension.
To get all files and loop through them use Directory.Getfiles(“FolderPath”,“Extensiontype”) which will give you list of files. On this list you can use For each loop to iterate through all files.
Regards,
Vijay.
If this works and got resolved kindly close this topic with right comment marked as solution that could help other looking for ideas under your topic,
Cheers buddy @fifi
Hi! It works thank you! I just have a quick question. I just realized that the Sheet X in file A would have different names when I am doing the loop (eg. 1111_aaaa, 1112_aaaa, 1113_aaaa) so when I tried to read range it did not work… I tried to do
Could you please kindly advise how could i fix this? Thank you!
Buddy you can get the sheet names in an excel like this
Did that work buddy @fifi
Worked out! Thank you!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.