Hi all,

Just wondering if it is possible to find the physical location of selected
text (ie, in units from top and left of slide) within a textbox/autoshape?
I have a macro that formats my selected text in a special way, and I want it
to put a line (not underline, an actual line) under the text. But I can't
seem to get appropriate x,y coordinates for the line to put it in the right
place.

Thanks

Re: Finding exact physical location of selected text or cursor by Shyam

Shyam
Thu May 08 20:03:24 CDT 2008

Take look at this example: http://skp.mvps.org/ppt00041.htm#2. Once you know
the location of the cursor it is possible to arrive at the x/y co-ordinates
you require using the BoundHeight/BoundTop/BoundWidth/BoundLeft properties.

Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm


"Marky Mark" <MarkyMark@discussions.microsoft.com> wrote in message
news:73A1E101-DAE7-457A-9889-9359D30D96F5@microsoft.com...
> Hi all,
>
> Just wondering if it is possible to find the physical location of selected
> text (ie, in units from top and left of slide) within a textbox/autoshape?
> I have a macro that formats my selected text in a special way, and I want
> it
> to put a line (not underline, an actual line) under the text. But I can't
> seem to get appropriate x,y coordinates for the line to put it in the
> right
> place.
>
> Thanks
>


Re: Finding exact physical location of selected text or cursor by Steve

Steve
Fri May 09 10:44:42 CDT 2008

In article <73A1E101-DAE7-457A-9889-9359D30D96F5@microsoft.com>, Marky Mark
wrote:
> Hi all,
>
> Just wondering if it is possible to find the physical location of selected
> text (ie, in units from top and left of slide) within a textbox/autoshape?
> I have a macro that formats my selected text in a special way, and I want it
> to put a line (not underline, an actual line) under the text. But I can't
> seem to get appropriate x,y coordinates for the line to put it in the right
> place.

Something like this:

Double-Underline text
http://www.pptfaq.com/FAQ00775.htm

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================