browsing webpage using image tab

Deepk

Board Regular
Joined
Mar 21, 2018
Messages
105
Office Version
  1. 2016
Platform
  1. Windows
hi All,

I am looking for a VBA code that allow me to click a tab (provided as image) on a web page. The web page is not showing any id specific to the tab. Here is the source code.


td height="36" valign="bottom">
a href="javascript:submitTab('pair_search')" tabindex="6"
img src="/pair/img/tabs/image17off.gif"

name="imag40" height="36" hspace="0" vspace="0" border="0"
***********="nbGroup('over','imag40','/pair/img/tabs/image17on.gif','/pair/img/tabs/image17on.gif',1);"
**********="nbGroup('out');"

*******="nbGroup('down','group1','imag40','/pair/img/tabs/image17off.gif',1); submitTab('pair_search')"
alt="Select New Case" /> </a></td








Please help me with the code. Thanks with advance
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi Deepk,

I do not understand your request?! Maybe you can rewrite your message and give an example of what you are trying to do. Also, you are asking for VBA code but the example you gave is in JavaScript?!

Please clarify your request.
 
Upvote 0
Hi Deepk,

I do not understand your request?! Maybe you can rewrite your message and give an example of what you are trying to do. Also, you are asking for VBA code but the example you gave is in JavaScript?!

Please clarify your request.

I am trying to click a tab on a web page using VBA code. I did not find any class, tag, id or name associated with the tab in its source code. I also tried inspect element but did not find any thing. This tab may be linked with Java code (I am not sure)

Find the different codes below.

Source code:
Code:
<td height="36" valign="bottom">
<a href="javascript:submitTab('pair_search')" tabindex="6">
<img src="/pair/img/tabs/image17off.gif"
name="imag40" height="36" hspace="0" vspace="0" border="0"
***********="nbGroup('over','imag40','/pair/img/tabs/image17on.gif','/pair/img/tabs/image17on.gif',1);"
**********="nbGroup('out');"
*******="nbGroup('down','group1','imag40','/pair/img/tabs/image17off.gif',1); submitTab('pair_search')"
alt="Select New Case" /> </a></td>

Inspect Element:
Code:
<img name="imag40" height="36" ***********="nbGroup('over','imag40','/pair/img/tabs/image17on.gif','/pair/img/tabs/image17on.gif',1);" **********="nbGroup('out');" *******="nbGroup('down','group1','imag40','/pair/img/tabs/image17off.gif',1); submitTab('pair_search')" alt="Select New Case" src="https://portal.uspto.gov/pair/img/tabs/image17off.gif" border="0" vspace="0" hspace="0">

Please help.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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