Skip to content

Commit d699596

Browse files
committed
Merge pull request #19 from saqibmasood/master
Fix example
2 parents 88cedd1 + 7f29711 commit d699596

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)