VBA to click button on web with everchanging ID using IE

bezuchoff

New Member
Joined
May 31, 2018
Messages
3
Hi,
on an internal web which only runs in IE or GC there is a button with id="ext-eng-123" where 123 is a set of 3 numbers that change everytime the page is clicked. It appears it is a set of up to maybe 20 different combination, so not many. The whole line reads: <td align="left" id="ext-eng-123" valign="middle">Inspect</td> with <div tittle:"Launch Insp" style="cursor: pointer;" *******="launchForm('882',82,'1092','index.cfm?Org=2&Loc=xyz','');"
Alternatively the button can be clicked at Start Menu where it reads: <span class="clickable" id="ext-eng-456">Inspect</span>. The div has title= "Initiate", class="text-truncate mb-2", id="gsw-sideber-startmenuitem", data-type="record", data-appid="82" and data-url="index.cfm?abc=&def=",
I tried to call all possible elements, either it runs but doesnt click, or I get the 438 error.
I would love to run it from excel.
Many thanks
Bez.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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