Check if excel file has any macro #514
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#514
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
This is not an issue, I just want to know is there a way to find out if the excel file has any macro using this library.
xlsm files are the only ones allowed to have macros, maybe check the file extension?
@wildeyes xls and xlsb are also permitted to have records.
For VBA macros, passing the option
bookVBA:true
to the read functions will set thevbaraw
property of the workbook to the VBA storage if it is available.Pre-95 Macrosheets are currently not persisted.
Reading the file with the option
bookVBA:true
will create a keyvbaraw
if VBA is in the workbook. To find macrosheets, check the worksheet!type
key. The full test is: