KKsekar
(KKsekar)
June 2, 2022, 2:12pm
1
I have two excel files… File A and File B. From file A I need to read a sheet and paste data into File B with the same cell colors and format. I have used read and write range but the colors and format are not getting. If I use preserve format some data format are changed.
If I try manually copy and paste the data from file A to file B its as expected format…
Please help to solve this…
Veera_Raj
(Veeraraj Sethuraman)
June 2, 2022, 2:13pm
2
use macros or vb script you can easily copy paste exact
or else use copy/paste range activity
KKsekar
(KKsekar)
June 2, 2022, 2:14pm
3
Will you please advise me how to do that…I dont know about VB script and macros
Veera_Raj
(Veeraraj Sethuraman)
June 2, 2022, 2:22pm
4
Sub Macro2()
’
’ Macro2 Macro
’
’
sheet1.activate
activesheet.cells.select
Selection.Copy
sheet2.activate
ActiveSheet.Paste
End Sub
Hello @KKsekar .
Did you try with:
DataTable.Clone Method() : ??
It clones all the datatable schemas and constraints (structure)
It’s something like that.
DataTable newTable = originalTable.Clone()
Hello @KKsekar
Can you please share 2 excel files and explain which values needs to copy to another file.
Based on that we can try out some methods.
KKsekar
(KKsekar)
June 2, 2022, 2:28pm
7
This is my excel file A there are lot more rows and columns…file B is empty fresh excel sheet
KKsekar
(KKsekar)
June 2, 2022, 2:29pm
8
No I didnt tried this…plz advise
@KKsekar is it allowed to use custom activities? If yes, can you try the below package and the Copy to file activity.
Hi Friends,
I have included the below new custom components in the package.
1.Create Workbook.(Create a new worksheet)
2.Copy to File (Copy the worksheet to another excel file).
3.Copy to WorkBook (Copy the worksheet inside the workbook).
4.HideUnhide the worksheet
5.Protect Unprotect the worksheet
[image]
Create WorkBook
Properties
[image]
Sample : CreateWorkbook.zip (18.5 KB)
Copy To File
This activity copies the work sheet to an another excel file. If the another file is not ex…
1 Like
Hi @KKsekar ,
Have you tried the Copy/Paste Range
Activity ?
@KKsekar , Have you Checked with Copy Sheet
Activity, Maybe it suits your case more.
Hello! I use StudioX. Could you please provide how to copy a tab from one workbook to the other un StudioX?
1 Like