Skip to content

Commit a3ba0cd

Browse files
committed
Fix example AssignMacroToFormControl
1 parent fc9709a commit a3ba0cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Examples/src/main/java/com/aspose/cells/examples/articles/AssignMacroToFormControl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public static void main(String[] args) throws Exception {
3232
button.getFont().setColor(Color.getBlue());
3333
button.setText("Aspose");
3434

35+
button.setMacroName(sheet.getName() + ".ShowMessage");
36+
3537
workbook.save(dataDir + "Output.xlsm");
3638

3739
System.out.println("File saved");

0 commit comments

Comments
 (0)