lvermeersch
Dec 15th, 2005, 04:54 AM
One of the last things i need to complete my project.
I urgentlly need following.
I want the classname of a textbox shape
So i know how to get the text of the active textbox shape
Set Tbox = AppWord.selection.Shaperange
tk = tbox.textframe.textrange.text
Now i really need the handle of the active textbox shape.
I know i can use FindWindowEx API for this but i need the correct classname
I tried:
Hendel = FindWIndowEx(0,0,"Edit",vbnullstring)
I only get zero for the handle. I probably search for the wrong classname. I allso tried RichEdit or RichEdit20W instead of Edit.
I urgentlly need following.
I want the classname of a textbox shape
So i know how to get the text of the active textbox shape
Set Tbox = AppWord.selection.Shaperange
tk = tbox.textframe.textrange.text
Now i really need the handle of the active textbox shape.
I know i can use FindWindowEx API for this but i need the correct classname
I tried:
Hendel = FindWIndowEx(0,0,"Edit",vbnullstring)
I only get zero for the handle. I probably search for the wrong classname. I allso tried RichEdit or RichEdit20W instead of Edit.