10-21-2010, 05:12 AM
Hi, thank you for the reply. please see the attachment, not sure if attachment work.
‘IF A found from xls then set the check box to on
however this is hard coded, i want to have a more flexible here, does not matter where A exists, then get the relevant checkbox, so name could be "dcmtptyFlag$2" or could be "dcmtptyFlag$30"
‘IF A found from xls then set the check box to on
Code:
If DataTable("A", dtGlobalSheet) = "ON" then
ChkName = "dcmtptyFlag$2"
Browser("JUSTICEMAX_2").Page("JUSTICEMAX").WebCheckBox("dcmtptyFlag").SetTOProperty "name", ChkName
Browser("JUSTICEMAX_2").Page("JUSTICEMAX").WebCheckBox("dcmtptyFlag").Set "ON"
End If
however this is hard coded, i want to have a more flexible here, does not matter where A exists, then get the relevant checkbox, so name could be "dcmtptyFlag$2" or could be "dcmtptyFlag$30"