Hey there, no such thing as a dumb question, especially when you’ve done your part to try and find an answer and haven’t been successful. But yes, that’s very straightforward. See the example macro below.
You’re using Microsoft products... haha j/k, sort of... but honestly, the macOS copy/paste function doesn’t always play well with Microsoft products. Several of my macros that copy/paste end up with either an extra trailing space, or deleting a trailing space upon pasting. I have no idea why, but since it only does it with Microsoft products, I blame them.
Couldn't this Microsoft Smart Cut and Paste behaviour be countered by something resembling what I've done below, by adding the Group in yellow to @cdthomer's original macro? (Don't have any Microsoft apps installed to test it myself)
Wrap Highlighted Text in Smart Quotes WITH POSSIBLE FIX FOR MICROSOFT SMART CUT AND PASTE Macro (v10.2)
Works perfectly with the word "test" (as above) in Outlook (Version 16.77.1), Word (Version 16.77.1), and Notes (Version 4.10). I'm not sure I'm smart enough to understand the code, but function seems AOK.