Hi!

Can someone please tell me how can I get the text runs of the word doc
through VBA code or whether or not they are possible at all.
I think they should be accessible since they appear in the XML genrated from
word

Thanks
Abhishek

Re: Text Runs in VBA? by Doug

Doug
Thu Oct 20 12:46:19 CDT 2005

Maybe ActiveDocument.Range.Text

But I am not really sure what you mean by "text runs"

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Abhishek" <abhishekbagga_at_hotmail.com> wrote in message
news:OEid0qT1FHA.3568@TK2MSFTNGP15.phx.gbl...
> Hi!
>
> Can someone please tell me how can I get the text runs of the word doc
> through VBA code or whether or not they are possible at all.
> I think they should be accessible since they appear in the XML genrated
> from word
>
> Thanks
> Abhishek
>



Re: Text Runs in VBA? by Abhishek

Abhishek
Thu Oct 20 23:54:40 CDT 2005

A textrun specifies the collection of continous text with same formatting
In a paragraph whenever there is a change in formatting that constitutes the
a RUN
Total number of runs in a paragraph is equal to the total no of changes in
formatting within the paragraph

In WordML it is denoted by <w : r>
"Doug Robbins - Word MVP" <dkr@REMOVETHISmvps.org> wrote in message
news:uOHHw4Z1FHA.3568@TK2MSFTNGP15.phx.gbl...
> Maybe ActiveDocument.Range.Text
>
> But I am not really sure what you mean by "text runs"
>
> --
> Hope this helps.
>
> Please reply to the newsgroup unless you wish to avail yourself of my
> services on a paid consulting basis.
>
> Doug Robbins - Word MVP
>
> "Abhishek" <abhishekbagga_at_hotmail.com> wrote in message
> news:OEid0qT1FHA.3568@TK2MSFTNGP15.phx.gbl...
>> Hi!
>>
>> Can someone please tell me how can I get the text runs of the word doc
>> through VBA code or whether or not they are possible at all.
>> I think they should be accessible since they appear in the XML genrated
>> from word
>>
>> Thanks
>> Abhishek
>>
>
>



Re: Text Runs in VBA? by Klaus

Klaus
Tue Oct 25 19:59:25 CDT 2005

"Abhishek" <abhishekbagga_at_hotmail.com> wrote:
>A textrun specifies the collection of continous text with same formatting
> In a paragraph whenever there is a change in formatting that constitutes
> the a RUN
> Total number of runs in a paragraph is equal to the total no of changes in
> formatting within the paragraph
>
> In WordML it is denoted by <w : r>


Hi Abhishek,

No, unfortunately not. I've asked for a VBA method that returns the range of
the text run, given some position in the doc. And maybe if you and enough
others ask for something like that too, it might get implemented some day
(... shouldn't be too hard to implement, I'd think, and would be very useful
to speed up macros in lots of situations, since it would avoid the necessity
to look at individual characters).

If you can, you might just work with the WordML?

Regards,
Klaus



Re: Text Runs in VBA? by Klaus

Klaus
Tue Oct 25 20:06:46 CDT 2005

> a VBA method that returns the range of the text run, given some position
> in the doc

... or, if that's easier to implement, a method that returns the end of the
text run, or a range from the chosen position to the end of the run?

Klaus



Re: Text Runs in VBA? by Abhishek

Abhishek
Wed Oct 26 01:22:37 CDT 2005

They have it in PPPt object and also in WordML so why not have it here as
well.

Any ways I have started using WordML and it seems to ive me almost
everything though have to work hard on understanding it and then
implementing.

thanks for the response

Abhishek

"Klaus Linke" <info@fotosatz-kaufmann.de> wrote in message
news:%23H0xqhc2FHA.1184@TK2MSFTNGP12.phx.gbl...
> "Abhishek" <abhishekbagga_at_hotmail.com> wrote:
>>A textrun specifies the collection of continous text with same formatting
>> In a paragraph whenever there is a change in formatting that constitutes
>> the a RUN
>> Total number of runs in a paragraph is equal to the total no of changes
>> in formatting within the paragraph
>>
>> In WordML it is denoted by <w : r>
>
>
> Hi Abhishek,
>
> No, unfortunately not. I've asked for a VBA method that returns the range
> of the text run, given some position in the doc. And maybe if you and
> enough others ask for something like that too, it might get implemented
> some day (... shouldn't be too hard to implement, I'd think, and would be
> very useful to speed up macros in lots of situations, since it would avoid
> the necessity to look at individual characters).
>
> If you can, you might just work with the WordML?
>
> Regards,
> Klaus
>