|
From: Marky Mark on 8 May 2008 19:31 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
From: Shyam Pillai on 8 May 2008 21:03 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(a)discussions.microsoft.com> wrote in message news:73A1E101-DAE7-457A-9889-9359D30D96F5(a)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 >
From: Steve Rindsberg on 9 May 2008 07:44 In article <73A1E101-DAE7-457A-9889-9359D30D96F5(a)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 ================================================
|
Pages: 1 Prev: Need to overlay PPT slides Next: Negative numbers in a spreadsheet cell |