As requested on Twitter by @skoda, here is a macro to swap the selection with the clipboard.
Swap Selection with Clipboard.kmmacros (3.1 KB)
For more information, see the wiki Searching the Forum for Answers section.