RobertAKARobin / ExcelOverwriter

Overwrite the data in one XLSX using data from another XLSX, using column headers that you specify.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExcelOverwriter

Overwrite the data in one XLSX with data from another XLSX, using column headers that you specify.

Initialize it like this:

new XlsxSetup()
new UpdateByHeaders(
/*Input Path*/		"input.xlsx",
/*Input Sheet Regex*/	~/thisIsMySheet/,
/*Input Key Regex*/	~/thisIsMyKey/,
/*Output Path*/		"output.xlsx",
/*Output Sheet Regex*/	~/thisIsMyOtherSheet/,
/*Output Key Regex*/	~/thisIsMyOtherKey/,
/*In-to-Out Headers*/	[
"thisIsMyKey": "thisIsMyOtherKey",
"Apples and Oranges": "Fruit",
"Veggies": "Carrots and Tomatoes"
]
)

About

Overwrite the data in one XLSX using data from another XLSX, using column headers that you specify.

License:MIT License


Languages

Language:Groovy 100.0%