Consulting

Results 1 to 3 of 3

Thread: writing and editing a macro in current word document, not all documents

  1. #1

    writing and editing a macro in current word document, not all documents

    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?

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,817
    Location
    I don't use Word or Office 365, but, is it a .*docm or a .*doc file?

    also: https://www.howtogeek.com/706392/how...ft-office-365/
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    VBAX Regular
    Joined
    Jul 2020
    Location
    Sun Prairie
    Posts
    86
    Location
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •