It's clearly IE version dependent. All I can tell you, is that I had some IE automation code which had run for many, many years. All of a sudden my code didn't run anymore, instead it raised errors which I don't remember. More or less by accident I changed a click() into click(.T.), and the code ran as it used to, also on older IE versions! I have given this tip to quite a few people, and they also have reported that adding .T. as a parameter does fix the problem.
>That's quite strange and not standards-compliant at all. Besides, according to Microsoft's documentation in
http://msdn.microsoft.com/en-us/library/ms536363(v=vs.85).aspx, click() has no parameters (as it should).
>
>Can you describe the scenario in which a parameter is required to make the method work?
>
>>I have found that with newer versions of IE, you must use .click(.T.) instead of .click().
>>
>>>Emulate the interactive action on the checkbox, instead:
>>>
>>>loIE.document.getElementByID("aceite").click()
>>>
>>>This way the form is shown as soon as the user chooses the type of customer service he/she's requiring.
>>>
>>>>Hi
>>>>
>>>>I am automatically filling fields, but have problem with checkboxes and their events.
>>>>