Forum Discussion

Puzzled1150's avatar
Puzzled1150
Copper Contributor
Jan 12, 2024

Macros are reproduced in document when macro is run

I have encountered a behavior today that I have never seen before.  I have experience with Word macros, but I am running a new machine with Office 365 and Windows 11.    

 

This morning I (quickly) created a down-and-dirty macro using "Record macro".  Nothing radical; really simple.

 

Each time I run this macro, however, all the macro coding is added to the document over which I have run the macro. 

 

Apart from this odd behavior the macro works, but what is this about and how do I fix it?  Very weird. 

 

Thank you!

1 Reply

  • Charles_Kenyon's avatar
    Charles_Kenyon
    Bronze Contributor

    Puzzled1150 

    I know of no way, in a recorded macro, that the macro code would go into a document on which the macro is run.

     

    How are you identifying that the macro is present in the document?

Resources