How to Open Macro-Enabled Excel Attachments from PDFs
Question details
The user is unable to directly open macro-enabled Excel attachments (such as XLSM or XLSB) from within a PDF document.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Attempting to double-click or open an attached macro-enabled Excel workbook directly from a PDF reader's attachment panel.
- Observed behavior
- The PDF reader blocks the attachment from opening due to security restrictions designed to prevent malicious macro execution.
Ensure you have an active and updated antivirus program running. Macro-enabled files can contain executable code, so only proceed if you explicitly trust the sender of the PDF.
Save the Attachment Locally and Open Manually
Bypass the PDF reader's security block by extracting the attachment to your local drive before opening it in a spreadsheet application.
Modern PDF readers, including Acrobat, block direct execution of certain Office files (.xlsm, .xlsb, .xla, etc.) to protect your computer from potentially harmful scripts. To access the file, you must first save it outside the PDF environment.
Open the PDF and click the paperclip icon (Attachments panel) usually located on the left sidebar to view the list of attached files.
Right-click the blocked Excel attachment (e.g., XLSM or XLSB) and select 'Save Attachment' or 'Save As' from the context menu.
Select a designated folder on your computer's hard drive and click 'Save' to extract the file from the PDF.
Launch your spreadsheet software, click 'File' > 'Open', navigate to the folder where you saved the extracted attachment, and open it.

Manage PDFs and Macro-Enabled Spreadsheets Seamlessly with WPS Office
WPS Office is an all-in-one suite that features both a powerful PDF reader and a highly compatible spreadsheet editor. You can easily view PDFs, extract file attachments, and securely open macro-enabled workbooks in a single, unified workspace.
- 1. Open the PDF: Launch WPS PDF and open the document containing the Excel attachment.
- 2. Extract the attachment: Click the 'Attachment' panel icon on the left sidebar, right-click the XLSM/XLSB file, and click 'Save to Local'.
- 3. Switch to Spreadsheets: Click the '+' icon at the top of the WPS Office window to open a new Spreadsheet tab.
- 4. Open the macro file: Click 'Menu' > 'Open', locate the extracted macro-enabled file, and open it safely within WPS Spreadsheet.

Frequently Asked Questions
Why does my PDF reader block XLSM and XLSB files by default?
PDF readers block macro-enabled Office files because macros can contain executable VBA code that poses a significant security risk. Blocking them prevents malicious scripts, such as malware or viruses, from running automatically when you interact with a PDF.
Can I permanently disable this attachment security block?
While it is technically possible to modify Acrobat's attachment security settings via Windows Registry edits or enterprise policies, Adobe and cybersecurity experts strongly advise against doing so. The safest approach is always to extract the file locally first.
Does this issue affect regular XLSX or CSV files attached to PDFs?
No. Standard Excel workbooks (.xlsx) and comma-separated values (.csv) files do not support embedded macros. As a result, they are generally not affected by this specific security block and can usually be opened directly from the PDF.
What should I do if my computer restricts me from saving PDF attachments?
If you are on a corporate network and your IT department has restricted saving attachments to your local drive, you will need to contact your system administrator for access. Alternatively, ask the sender to share the spreadsheet via a secure file-sharing link rather than a PDF attachment.




