VBA data extraction from external application

jijups

New Member
Joined
Nov 19, 2021
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hallo,

Iam using VBA to conrol navigate to reach a page in an external Application. From this page iam able to see the data as in excel format but not literally as in excel application. Before navigating to ...
to treach this final page
..... i need to search for specific data name in that current window ....to the right of that name i have anumber with keeps on changing from time to time. This number if i double click ... i reach the final page. help me in solving it
thank you

this is what i did till now




sub automation()
Dim window
'window = Shell("C:\Users\anw213881\ClientInstall_TMS_Trebbin\TMSClient.exe", vbNormalFocus)

hwnd = FindWindow(vbNullString, "TMS-Client - porta TMS Trebbin")
start_doc = ShellExecute(hwnd, "open", "C:\Users\anw213881\ClientInstall_TMS_Trebbin\TMSClient.exe", 0, 0, SW_Normal)

If window = 2 Then Exit Sub
If window = 3 Then Exit Sub

Dim time1, time2

time1 = Now
time2 = Now + TimeValue("0:00:10")

Do
DoEvents

hwnd1 = FindWindow(vbNullString, "TMS-Client - porta TMS Trebbin")
time1 = Now()
Loop Until time1 >= time2


'since i cannot find the bext push button in spy++, iam selecting it with cursor

SetCursorPos 990, 180 'x and y position
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0


then from next page i need the help. this page is attached along
 

Attachments

  • TMS.PNG
    TMS.PNG
    48.9 KB · Views: 33

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top