Is there an API call that will return the handle to a VBA user form control?
TIA
Kevin <img src=/S/crossfingers.gif border=0 alt=crossfingers width=17 height=16>
Is there an API call that will return the handle to a VBA user form control?
TIA
Kevin <img src=/S/crossfingers.gif border=0 alt=crossfingers width=17 height=16>

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
When a control gets the focus, it becomes a "window", so you should be able to use this:
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Charlotte
Thanks Charlotte, I'll give it a go
Kevin