PS:
I have seen I have a more recent version of the macro in my KM library, which I have labeled as “beta”. (But still from 2018, it seems.) Trying to figure out what the improvements are (besides making some variables local).
Maybe I’ll post that. Or, in any case, if you come across issues with the posted version, let me know, and I will give priority to a revised version.