use excel_add_sheet::{ExcelDoc, ExcelWorkbook};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut doc = ExcelDoc::open("minimal.xlsx")?;
let data = vec![
vec!["Hello".to_string(), "World".to_string()],
vec!["123".to_string(), "456".to_string()],
];
doc.add_worksheet("NewSheet", Some(data))?;
doc.save("modified.xlsx")?;
println!("Added worksheet and saved as modified.xlsx!");
Ok(())
}