Script to Copy Data from Existing Excel Worksheet into New Worksheet (Auditing Purposes)

Hello,

I am fairly new to dynamo. I was just wondering if there was a node/script that can copy data from a worksheet in excel into a new worksheet & rename it for editing/auditing purposes?

Hi @french_designs

Yes it is possible you can read data from worksheet in excel and copy it to new worksheet. For renaming data before writing you can rename your data in Dynamo and feed the values in “Excel.WriteToFile” node.

Thanks @Kulkul. Would it be possible to extract the data location (row,column) from the existing and transfer it to the exact same location on the new worksheet?

@french_designs Yes its possible. Just few minutes i will post solution soon.

@french_designs Here you go. There are nodes from @Konrad_K_Sobon’s Bumble Bee package to read excel rows and columns you can use that nodes.

2 Likes

Great, thank you for this. Much appreciated.

Easier to use an Excel macro ?

Sub CopySheet1()
    ThisWorkbook.Sheets("Sheet1").Copy Before:=Sheets(1)
    End Sub