Different actions if text is selected or not?

A search I just did turned up a technique that @peternlewis posted some time ago. I didn't know about it, but have been using the same technique with great success for a long while:

Here's a macro I wrote based on suggestions and help from many others:

1 Like