I'd like to know how to read buttons or body text from some child window.
I already found the window handle ;)
I couldn't find is in VBA forums, so maybe I can get something out of VB...
It's the clipboard-window I'd like to read to capture the cut-addresses:
![Name: excel 2010 clipboard.JPG
Views: 106
Size: 41.5 KB]()
I already found the window handle ;)
Code:
winHandle = FindWindow("XLMAIN", Application.caption)
winHandle = FindWindowEx(winHandle, 0, "EXCEL2", "")
winHandle = FindWindowEx(winHandle, 0, "MsoCommandBar", "Office Clipboard")
winHandle = FindWindowEx(winHandle, 0, "MsoWorkPane", vbNullString)
winHandle = FindWindowEx(winHandle, 0, "bosa_sdm_XL9", "Collect and Paste 2.0")
It's the clipboard-window I'd like to read to capture the cut-addresses: