I've a VP 7.3 application named "Attrib_options_excel.exe" and the title of the task is "Attrib_options_excel".
In the task, there is one form (named "Frm1").
In this form, there is an edit control named "prix" (and other controls).
From an Excel VBA macros, I would like to put a value in this edit control.
How to recover the edit control handle ?
Here is my VBA code :
Code: Select all
Sub ApplicationPremierPlan() Dim hwnd As Long Dim Hwnd_child As Long Dim Hwnd_prix As Long hwnd = FindWindow("PDCFrame32", "Attrib_options_excel") If hwnd > 0 Then Hwnd_child = FindWindowEx(hwnd, 0,???, "") Else Shell "d:\...my_path...\Attrib_options_excel.exe", vbNormalFocus End If End Sub