mirror of
https://github.com/jmcnamara/libxlsxwriter
synced 2025-03-28 21:13:14 +00:00
26 lines
699 B
C
26 lines
699 B
C
/*****************************************************************************
|
|
* Test cases for libxlsxwriter.
|
|
*
|
|
* Test to compare output against Excel files.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
* Copyright 2014-2024, John McNamara, jmcnamara@cpan.org.
|
|
*
|
|
*/
|
|
|
|
#include "xlsxwriter.h"
|
|
|
|
int main() {
|
|
|
|
lxw_workbook *workbook = workbook_new("test_button07.xlsm");
|
|
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
|
|
|
|
lxw_button_options options = {.caption = "Hello", .macro = "say_hello"};
|
|
|
|
worksheet_insert_button(worksheet, CELL("C2"), &options);
|
|
|
|
workbook_add_vba_project(workbook, "images/vbaProject02.bin");
|
|
|
|
return workbook_close(workbook);
|
|
}
|