>Hello, my name is Jeremy.
>I am trying to write a small script in VB to move a Selection of
>Shapes from one page of a document to another and re-positioning the
>shapes based on the order in which they were first selected.
>How is the index of Selection objects determined?
I do not know whether I should use a Range obj or
Selection obj. I suspect I need a Range but I don't know
how to set the Range object (oRange) initially.
I need to format some text as TitleCase (wdTitleWord). The
text I am doing this to is a string:
where strString is my "unformatted" (ie, ALLCAPS instead
of TitleCase) string.
The thing is, I need the text to be title case. Only my
string needs to be title case, not the rest of the
document. So I thought maybe I needed to use a Range
object in order to accomplish this.
set oRange = (this is what I don't know)
oRange.Text = strString
oRange.Case = wdTitleWord
But as you can see, my object variable (oRange) is not
set. How do I set oRange = something so that I can use its
text and case properties and then paste in my TitleCase
text. Any advice appreciated.