VBA在网页select 制定item不能实现,是什么问题?
select有下面有4个item,需要用VBA选择其中一个,自己想的一个,没有成功也没有报错IE.Document.forms(0).all("ctl00$ContentPlaceHolder1$ddlCustomerType").Value ="A"
网页代码:
<td class="BoxHeader">Customer type:</td>
<select name="ctl00$ContentPlaceHolder1$ddlCustomerType" id="ctl00_ContentPlaceHolder1_ddlCustomerType" style="font-size:11px;width:98%;">
<option value="A">Business Partner (BP)</option>
<option value="B">Direct</option>
<option value="C>Global</option>
<option value="D">Lenovo</option>
</select> --------------------编程问答-------------------- IE.getElementById("ctl00_ContentPlaceHolder1_ddlCustomerType").VALUE="A" --------------------编程问答-------------------- IE.document.getElementById"ctl00_ContentPlaceHolder1_ddlCustomerType").VALUE="A"
补充:VB , VBA