Chacanger
Programmer
- Feb 22, 2011
- 7
Hi
I'm working on a monthly report system that needs to obtain informtion from a program created in vb98. I have the names of the buttons and controls but I don't know how I can click the buttns type the info in the text boxes and copy data from the system to a spreadsheet. Is it best to use the mouse automation features were you can assign where the mouse goes or is it posibe to use the control names to press btons like you can with interenet explorer?
Sub ImportData()
'Click "btnName"
'Type info into "textbox1"
'Click "btnOK"
'Copy a string of text froma textbox.
'This bit just goes into the spreadshee and paste into the _ correct columns etc.
End Sub
If that isn't possible does anyone know how to get the mouse to move ,highlight text, then copy it?
PS I can't use any additional software to help automate this so need to do it with what info I have.
Any help would be much appriciated.
Thanks
Chacanger
I'm working on a monthly report system that needs to obtain informtion from a program created in vb98. I have the names of the buttons and controls but I don't know how I can click the buttns type the info in the text boxes and copy data from the system to a spreadsheet. Is it best to use the mouse automation features were you can assign where the mouse goes or is it posibe to use the control names to press btons like you can with interenet explorer?
Sub ImportData()
'Click "btnName"
'Type info into "textbox1"
'Click "btnOK"
'Copy a string of text froma textbox.
'This bit just goes into the spreadshee and paste into the _ correct columns etc.
End Sub
If that isn't possible does anyone know how to get the mouse to move ,highlight text, then copy it?
PS I can't use any additional software to help automate this so need to do it with what info I have.
Any help would be much appriciated.
Thanks
Chacanger