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

Macro execution on startup #195

Closed
tobya opened this issue Jun 30, 2022 Discussed in #190 · 7 comments
Closed

Macro execution on startup #195

tobya opened this issue Jun 30, 2022 Discussed in #190 · 7 comments
Milestone

Comments

@tobya
Copy link
Owner

tobya commented Jun 30, 2022

Discussed in #190

By default Autoexec seems to run.

Try to switch off with

WordBasic.DisableAutoMacros

@tobya tobya added this to the V1.8 milestone Jul 5, 2022
@tobya tobya modified the milestones: V1.8, V1.84 Sep 6, 2022
@tobya
Copy link
Owner Author

tobya commented Nov 28, 2022

This is in process. @chross I can call

WordBasic.DisableAutoMacros

Which disables the macros in the word document as far as I can tell from basic testing. It seems to only disable for the current application instance so as soon as the word application is closed it reverts back to the macros running. Will be available in 1.9 which hopefully I can release in a few days.

@chross
Copy link

chross commented Nov 28, 2022

That'd be great. Currently i'm disabling all macros via group Policy which results in hanging word processes when converting macro containing documents. The reason probably is that Word tries to display a "macros are disabled" warning which is not confirmed by the "user".

@tobya
Copy link
Owner Author

tobya commented Nov 29, 2022

Can I give you a test version to do some basic testing on before I release the code ? Just make sure it runs does the conversion and doesnt hang?

@tobya
Copy link
Owner Author

tobya commented Nov 29, 2022

This is the test version. Try it out on some macro documents if you can.
docto.zip

version is 1.9 but I will most likely bump to 2.0 as this will be a breaking change.

@chross
Copy link

chross commented Dec 1, 2022

Hi!
This release is great and works just as expected.
Either DOCM or DOC files with macros embedded will convert without macros being run. When using the --enable-macroautorun option, macros are executed.

Could you implement this for other filetypes as well (i.e. Excel)?

@tobya
Copy link
Owner Author

tobya commented Jun 2, 2023

This change now included in Release 1.9 https://github.com/tobya/DocTo/releases/tag/v1.9

@tobya tobya closed this as completed Jun 2, 2023
@Darthmineboy
Copy link
Contributor

This is still only for Word right? Is it possible to disable macro autorun for Excel?

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

No branches or pull requests

3 participants