View Single Post
 
Old 05-19-2011, 11:39 AM
SDondeti SDondeti is offline Windows XP Office 2007
Novice
 
Join Date: Apr 2011
Posts: 7
SDondeti is on a distinguished road
Default Retrieve position of Cursor - x & y positions

Hi,

Can some one help me to find cursor x & y positions in powerpoint slides using vba code.

I have a requirement to addtextbox whereever the cursor is, it can be in place holder or any shapes.

below is the sample code i tried to pass left,top, width & height.
If x & y positions are known then i can pass it dynamicaly at cursor position and add textbox.

ActiveWindow.Selection.SlideRange.Shapes.AddTextbo x(msoTextOrientationHorizontal, 70, 116, 215.88, 72#).Select

Thanks for your help.

Thanks,
SDondeti
Reply With Quote