Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Autorun on Excel #212

Open
tobya opened this issue Sep 29, 2023 · 2 comments
Open

Disable Autorun on Excel #212

tobya opened this issue Sep 29, 2023 · 2 comments

Comments

@tobya
Copy link
Owner

tobya commented Sep 29, 2023

Word autorun is now disabled by default

Shoudl also be possible to disable on Excel.

Raised by

@tobya
Copy link
Owner Author

tobya commented Sep 30, 2023

@Darthmineboy Can you provide me with an xls spreadsheet that has an autorun macro.

I dont use excel much.

@Darthmineboy
Copy link
Contributor

@tobya for security it may be better if I explain how, instead of sharing a macro document :)

  1. First enable developer ribbon, go to File > Options > Customize Ribbon > Enable Developer ribbon
  2. Then go to developer ribbon and select view code
  3. To ThisWorkbook I added Workbook_Open sub that overwrites a cell
Private Sub Workbook_Open()
    Cells(2, 1).Value = "Macros are enabled"
End Sub
  1. Save file as Excel Macro-Enabled Workbook
  2. Close file and open, after enabling macros (security warning) the 2nd row should show "Macros are enabled"
  3. Docto however runs the macro (without security warning) docto -XL -f macro.xlsm -OX .pdf -T xlpdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants