-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for signed VBA projects.
- Loading branch information
Showing
9 changed files
with
212 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/***************************************************************************** | ||
* Test cases for libxlsxwriter. | ||
* | ||
* Test to compare output against Excel files. | ||
* | ||
* Copyright 2014-2022, John McNamara, [email protected] | ||
* | ||
*/ | ||
|
||
#include "xlsxwriter.h" | ||
|
||
int main() { | ||
|
||
lxw_workbook *workbook = workbook_new("test_macro04.xlsm"); | ||
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, "Foo"); | ||
|
||
workbook_add_signed_vba_project(workbook, | ||
"images/vbaProject05.bin", | ||
"images/vbaProject05Signature.bin"); | ||
|
||
worksheet_set_column(worksheet, COLS("A:A"), 30, NULL); | ||
worksheet_write_string(worksheet, 2, 0, "Press the button to say hello.", NULL); | ||
|
||
lxw_button_options options = { .caption = "Press Me", .macro = "say_hello", | ||
.width = 80, .height = 30 }; | ||
|
||
worksheet_insert_button(worksheet, 2, 1, &options); | ||
|
||
return workbook_close(workbook); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.