M
muthoosmathew
Guys i need to Click on web page button using Excel Macro.
the source is as follows
<button type="button" class="button" onMouseOver="this.className='buttonOn'" onMouseOut="this.className='button'" onClick="submitForm('search.basicSearchForm','search.basicSearchValidate');">Search</button>
My code is
Set objCollection = IE.document.getElementsByTagName("button")
i = 0
While i < objCollection.Length
If objCollection(i).onClick="submitForm('search.basicSearchForm','search.basicSearchValidate');" Then
Set objElement = objCollection(i)
End If
i = i + 1
Wend
objElement.Click
This is not working..
Please give me ideas(simple though as i am a beginner in this)
Mats.
the source is as follows
<button type="button" class="button" onMouseOver="this.className='buttonOn'" onMouseOut="this.className='button'" onClick="submitForm('search.basicSearchForm','search.basicSearchValidate');">Search</button>
My code is
Set objCollection = IE.document.getElementsByTagName("button")
i = 0
While i < objCollection.Length
If objCollection(i).onClick="submitForm('search.basicSearchForm','search.basicSearchValidate');" Then
Set objElement = objCollection(i)
End If
i = i + 1
Wend
objElement.Click
This is not working..
Please give me ideas(simple though as i am a beginner in this)
Mats.