If you have a macro that is already "named," that is, the code lines include Sub and End Sub, you only have to copy the whole code block into the Visual Basic Editor.
For more specific assistance, tell us which code you are using.
__________________
Stefan Blom
Microsoft Word MVP
Microsoft 365 apps for business
Windows 11 Professional
|