So, I came up with a quick calculation to do it:
Middle ( Get ( ActiveFieldContents ) ; Get (ActiveSelectionStart) ; Get ( ActiveSelectionSize ) )You can package it up as a function, or use it (like I did) in a script to set a variable to whatever text the user has selected. I hope this helps!
2 comments:
Thanks, Bob! That is a definite timesaver for me. I couldn't figure out how to use substitute just on the selected portion of text. Your formula did it.
Reb
Thanks, Bob. That was a real help. I couldn't figure out how to use substitute just on selected text .
Post a Comment