Missing FormControl Button
See original GitHub issueI have an .xlsm file that contains a macro tied to a button.
If I run the following:
const xlsx = require('xlsx');
const workbook = xlsx.readFile('./test.xlsm', { bookVBA: true });
xlsx.writeFile(workbook, './test_saved.xlsm');
and open test_saved.xlsm, the button is missing. The macro is still available but the button is gone.
Some simple steps to reproduce (in Office 2019)
- Create a blank workbook
- Add a button via Developer tab -> Insert. Click the button icon under Form Controls
- Record whatever macro you want when you add the button
- Save file as
test.xlsm
- Run the code above
- Open
test_saved.xlsm
I’d upload my test.xlsm
if I could.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Missing controls using Angular2 Reactive Forms
Already have MdButtonModule imported. It turns out <button> with md-raised-button or class="md-raised-button" generates a button, but without ...
Read more >Form Control Missing "More controls"! - English - Ask LibreOffice
Looking under Form Control and just found out MORE button is missing. I am not sure how to get it back. I have...
Read more >Solved: OnSuccess Missing From Button/Icon Dropdown
OnSuccess – How an app responds when a data operation has been successful. This property applies only to the Edit form control.
Read more >FormGroup - Angular
A FormGroup aggregates the values of each child FormControl into one object, with each control name as the key. It calculates its status...
Read more >Exploring the difference between disabling a form control ...
Below is a simple form with two fields and a button. We will use this setup to illustrate the different ways to disable...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
email the file to dev@sheetjs.com
There are two types of controls in Excel:
“ActiveX controls” are stored in the VBA blob and can be round-tripped by setting the
bookVBA
option on read and write“Form controls” are stored elsewhere and are currently supported in our Pro builds but not in the open source