Variable placement of a variable

I have a macro that creates a short URL and puts it in a variable X. I can easily create a prompt that asks me for descriptive text Y and then appends to a text file using a prescribed format for the string, such as “See Y at X”

But how can I prompt for descriptive text and allow the user to type freely and indicate where to use that short URL variable X in a sentence? So I could type:

Try the site FOO, it rocks!

OR

FOO rocks!

And have FOO replaced with X?

They say a picture is worth a thousand words, so here you are:

1 Like

Thanks! I sure was overthinking that…

1 Like