Log in

View Full Version : writing and editing a macro in current word document, not all documents



glow777-1
10-27-2022, 07:13 AM
Hi, we have recently moved to Ofice 365.
I am struggling to write macros in an explicit document in word. I can write them for all documents or the default template. But when I give a macro a name and choose current document create is greyed out.
Strangely this behaviour is different in excel where i can create a macro, and edit, in just the current document.

Hope this makes sense
All googling just points to document security
Any help?

SamT
10-27-2022, 09:20 AM
I don't use Word or Office 365, but, is it a .*docm or a .*doc file?

also: https://www.howtogeek.com/706392/how-to-enable-and-disable-macros-in-microsoft-office-365/

Chas Kenyon
10-28-2022, 08:03 PM
You can save macros in documents and have them work with the ThisDocument object. In all but legacy versions of Word, they would be saved in files with a .docm extension. They can also be saved in legacy .doc format files.

IreneFCK
05-16-2024, 04:53 AM
Thanks for the information!

Aussiebear
05-16-2024, 05:11 AM
Thanks for the information!

Well now there's a comment that makes some sense, ... maybe

Here's a important piece of information for all those who want to paste a comment thats so bland..... dont bother.