Page 1 of 1

Suggestions for the use of the scripts

Posted: 20 Mar 2008 16:14
by Claudio
Hi, Rickard

Thank you in order to have carried out the improvement from demanded me.

I wish a information: how I can characterize one variable (es. [ CurrentWord ]) in one Vbasic script?

Reply thank you.

Claudio Barbiero.

P.S.: sorry for my poor english.

Posted: 21 Mar 2008 08:48
by Rickard Johansson
I'm not sure I understood you correctly but to get the current word, you can do this:

'If the text is selected
dim s
s = Document.SelText

or

'If not selected
dim s
Document.WordLeft
Document.WordRight
s = Document.SelText
s = Trim(s) 'There may be a trailing space character here.