We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Copy Paste from excel to excel using loop

Vikas_Rawat
5 - Atom

Hello Guys, 

 

I am new to Alteryx, I have created an Input Text data. I want Alteryx to read source file, sheet and range, copy it and paste to target file, sheet and range. help me building it.

 

Source FileSource SheetRangeTarget FileTarget SheetRange
C:\users\altryx\input\Excel File1.xlsxANSG4:G13C:\users\altryx\input\Output File1.xlsxANSG3:g13
C:\users\altryx\input\Output File_Prior.xlsxANSG4:G13C:\users\altryx\input\Output File1.xlsxANSI3:I13
C:\users\altryx\input\Excel File1.xlsxMNHG4:G13C:\users\altryx\input\Output File1.xlsxMNHG3:g13
C:\users\altryx\input\Output File_Prior.xlsxMNHG4:G13C:\users\altryx\input\Output File1.xlsxMNHI3:I13
C:\users\altryx\input\Excel File1.xlsxTotalG4C:\users\altryx\input\Output File1.xlsxMNHG4
C:\users\altryx\input\Excel File1.xlsxTotalG5C:\users\altryx\input\Output File1.xlsxMNHG9
5 REPLIES 5
Richard_Data
6 - Meteoroid

All you need is 1 input tool, connected with an output tool. Put that into a control container. Connect it to another control container where you insert another input and output tool. Repeat.

binuacs
21 - Polaris

@Vikas_Rawat one way of doing this with a batch macro

binuacs_0-1750600467269.png

 

Richard_Data
6 - Meteoroid

Thank you! I will be using this myself

Vikas_Rawat
5 - Atom
C:\users\altryx\input\Excel File1.xlsxTotalG4C:\users\altryx\input\Output File1.xlsxMNHG4
C:\users\altryx\input\Excel File1.xlsxTotalG5C:\users\altryx\input\Output File1.xlsxMNHG9

 

@binuacs for some reason this is not working. Macro is ignoring these fields

 

Vikas_Rawat
5 - Atom

Please ignore.. I found the solution

Labels
Top Solution Authors