I am hoping this is a simple solution. I currently am trying to get my macro to log in to my bank and then to go to the detail page where I want to copy the detail information.

I can get the macro to log me in with the user id and password, however when I get to the main page, I am unable to figure out how to get to the specific detail account page. Below is the page source info. (note there are 2 accounts on this page). Any ideas how to get this to work? Any help would be greatly appreciated!

<tr align="right" class="summary2"><td width="165" align="left"><table border=0 cellpadding=0 cellspacing=0><tr><td><img src="/images/sp.gif" width="5" height="10"></td><td class="bodytext"><a href="#" onclick="document.accountDetailsForm.inquiryAccountIndex.value = '0'; set(document.accountDetailsForm, '/OLB/fin/vie/als/accountDetails?mode=confirmation&buttonClicked=');document.accountDetailsForm.submit(); return true;" class="links">Chequing</a></td></tr></table></td><td width="135" class="bodytext"><a href="#" onclick="document.accountDetailsForm.inquiryAccountIndex.value = '0'; set(document.accountDetailsForm, '/OLB/fin/vie/als/accountDetails?mode=confirmation&buttonClicked=');document.accountDetailsForm.submit(); return true;" class="links">0122 3322-153</a></td><td width="90" class="bodytext">Jan 6, 2010</td><td width="165"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="140" class="bodytext" align="right">$400.16 CAD</td><td width="5" class="bodytext" align="right">&nbsp;</td><td width="20" class="bodytext" align="center">DR</td></tr></table></td></tr>

<tr align="right" class="summary1"><td width="165" align="left"><table border=0 cellpadding=0 cellspacing=0><tr><td><img src="/images/sp.gif" width="5" height="10"></td><td class="bodytext"><a href="#" onclick="document.accountDetailsForm.inquiryAccountIndex.value = '1'; set(document.accountDetailsForm, '/OLB/fin/vie/als/accountDetails?mode=confirmation&buttonClicked=');document.accountDetailsForm.submit(); return true;" class="links">Savings</a></td></tr></table></td><td width="135" class="bodytext"><a href="#" onclick="document.accountDetailsForm.inquiryAccountIndex.value = '1'; set(document.accountDetailsForm, '/OLB/fin/vie/als/accountDetails?mode=confirmation&buttonClicked=');document.accountDetailsForm.submit(); return true;" class="links">0111 2222-111</a></td><td width="90" class="bodytext">Jan 6, 2010</td><td width="165"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="140" class="bodytext" align="right">$1080.98 CAD</td><td width="5" class="bodytext" align="right">&nbsp;</td><td width="20" class="bodytext" align="center">&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table></td></tr>

Below is the macro that gets me to the page source info above

Private Sub CommandButton1_Click()
 Set IE = CreateObject("InternetExplorer.Application")
    With IE
        .Visible = True
        .Navigate "https://www1.bmo.com/cgi-bin/netbnx/NBmain"
        '  Loop until the page is fully loaded
        Do Until Not .Busy
            DoEvents
        Loop
     ' Make the desired selections on the web page and click the submit Button
       
          Set ipf = IE.document.all.Item("FBC_Number")
            ipf.Value = "xxinsert useridxx"  'filler user id for example
        Set ipf = IE.document.all.Item("go")
            ipf.Value = "submit"
        ipf.Click
         ' Loop until the page is fully loaded
        Do Until Not .Busy
            DoEvents
        Loop
         
         Set ipf = IE.document.all.Item("FBC_Password")
         ipf.Value = "xxinsert passwordxx"  'filler password for example 
          Set ipf = IE.document.all.Item("go")
            ipf.Value = "submit"
        ipf.Click
         ' Loop until the page is fully loaded
        Do Until Not .Busy
            DoEvents
        Loop
        
         End With