VBA IE INternet Explorer Macro Navigation Through CSS Menu

excelcandy

New Member
Joined
Sep 23, 2013
Messages
21
Dear Mr. Excels,

I am navigatin through some intranet pages with a Excel VBA Macro. I got stuck on this page on the intranet.
I need to select the BUTTONTWO, first BUTTONONE needs to be hovered over. How can one navigate to BUTTONTWO?


Intranet
Code:
    ****** http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="style/window.css" type="text/css">
        <link rel="stylesheet" href="style/csshorizontalmenu.css" type="text/css">
        ******** type="text/javascript" src="scripts/csshorizontalmenu.js">*********>
        ******** type="text/javascript" src="scripts/scripts.js">*********>
  
  
    ******** type="text/javascript">
      bphx.Page.tryToAdvance();
    *********>
<form id="form" name="form" method="post" action="/adehk/data.jsf;jsessionid=1231666642ABC" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="form" value="form">
<input id="form:request-id" type="hidden" name="form:request-id" value="7"><input id="form:focused-field" type="hidden" name="form:focused-field" value="">
        
        <input type="hidden" id="bphx.postbackArgs" name="bphx.postbackArgs"><input id="form:post-button" type="submit" name="form:post-button" value="" style="display: none">




        ******** type="text/javascript">
{
  var c = bphx.Controls;




  c.setContainerId('form');
  c.setFocusedField('focused-field');
  c.setPostbackButton('post-button');
  c.setPostbackArgs('bphx.postbackArgs');
}
        *********>
        
        ******** type="text/javascript">
   function logoff*******()
   {
      if(confirm("Log out?")) {
          **************** = 'index.html?sso_logout=true';
          ************('','_self','');
          window.close();
          return true;
      }     else {
          return false;
      }
   }
 
   
*********>
          
            
              
            
                
                  
                
            
              
            
              
                
              
          [TABLE="class: container"]
<tbody>[TR="class: header"]
[TD]                
                  
                    
                    
                  
                [TABLE="width: 100%"]
<tbody>[TR]
[TD]                      [IMG]http://www.mrexcel.com/forum/images/Some_logo.gif[/IMG][/TD]
[TD="class: appTitle"]BUTTONONE/td>[/TD]
[TD]                        
                                
                                    
                                          
                                          
                                          
                                    
                                  [TABLE]
<tbody>[TR]
[TD="class: menu_item"]******** type="text/javascript" language="Javascript">function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp[i]);}}};function apf(f, pvp) {var adp = new Array();f.adp = adp;var i = 0;for (k in pvp) {var p = document.createElement("input");p.type = "hidden";p.name = k;p.value = pvp[k];f.appendChild(p);adp[i++] = p;}};function jsfcljs(f, pvp, t) {apf(f, pvp);var ft = f.target;if (t) {f.target = t;}f.submit();f.target = ft;dpf(f);};*********>
[URL="http://www.mrexcel.com/forum/"]Home[/URL][/TD]
[TD="class: menu_item"]                                            [URL="http://www.mrexcel.com/forum/"]Help[/URL][/TD]
[TD="class: menu_item"]                                            [URL="http://www.mrexcel.com/forum/"]
                                                Logout
                                            [/URL][/TD]
[/TR]
</tbody>[/TABLE]

                        

                      [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD="class: menu"]         
            
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]BUTTONONE[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]BUTTONTWO[/URL]
[*][URL="http://www.mrexcel.com/forum/"]Withdrwl/Somethingelse[/URL]
[/LIST]

               
[*][URL="http://www.mrexcel.com/forum/"]BUTTONTWO[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]ButtonX[/URL]
[*][URL="http://www.mrexcel.com/forum/"]ButtonY[/URL]
[*][URL="http://www.mrexcel.com/forum/"]ButtonZ[/URL]
[/LIST]

               
[*][URL="http://www.mrexcel.com/forum/"]BUTTONTHREE[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]Bla1[/URL]
[*][URL="http://www.mrexcel.com/forum/"]Bla2[/URL]
[/LIST]

               
[*][URL="http://www.mrexcel.com/forum/"]BUTTONFOUR[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]Bubu1[/URL]
[*][URL="http://www.mrexcel.com/forum/"]Bubu2[/URL]
[/LIST]

               
[*][URL="http://www.mrexcel.com/forum/"]BUTTONFIVE[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]T1[/URL]
[*][URL="http://www.mrexcel.com/forum/"]T2[/URL]
[/LIST]

               
[*][URL="http://www.mrexcel.com/forum/"]BUTTONSIX[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]Hello1[/URL]
[/LIST]

               
[*][URL="http://www.mrexcel.com/forum/"]Windows[/URL]
[LIST]
[*][URL="http://www.mrexcel.com/forum/"]Close "BUTTONONE window"[/URL]
[*][URL="http://www.mrexcel.com/forum/"]
                              BUTTONONE window
                              [/URL]
[/LIST]

               
 
[/LIST]

            

         
******** type="text/javascript">
{
  var c = bphx.Controls;
   c.register('MenuItem2');
  c.register('MenuItem3');
  c.register('MenuItem5');
  c.register('MenuItem6');
  c.register('MenuItem7');
  c.register('MenuItem9');
  c.register('MenuItem10');
  c.register('MenuItem16');
  c.register('MenuItem15');
  c.register('MenuItem18');
  c.register('MenuItem19');
  c.register('MenuItem13');
}
*********>[/TD]
[/TR]
[TR]
[TD="class: body-area"]******** type="text/javascript">document.title = 'BUTTONONE window';*********>
******** type="text/javascript">
{
  var c = bphx.Controls;
  
c.setValidator(
  function()
  {
    c.setDisabled('MenuItem18', false);
  c.setDisabled('MenuItem19', false);
  c.setDisabled('MenuItem2', false);
  c.setDisabled('MenuItem3', false);
  c.setDisabled('MenuItem5', false);
  c.setDisabled('MenuItem6', false);
  c.setDisabled('MenuItem7', false);
  c.setDisabled('MenuItem9', false);
  c.setDisabled('MenuItem10', false);
  c.setDisabled('MenuItem13', false);
  c.setDisabled('MenuItem16', false);
  c.setDisabled('MenuItem15', false);
  });
}
*********>
                                   
                ******** type="text/javascript">
                  bphx.Controls.initialize();
                  bphx.Controls.handleGlobalMessage(
                    'NONE', 
                    '');
                *********>[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id1:j_id5">
</form>
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,635
Messages
6,173,481
Members
452,516
Latest member
archcalx

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