-1
我需要使用VBA代碼,點擊HREF的頁面數「2」(第二頁) 因爲沒有ID名字,我無法使用點擊網格
ie.document.getElementById("ctl00_ContentPlaceHolder1_searchResults_searchResultsGrid_imgExportExcel").Click option
<div id="ctl00_ContentPlaceHolder1_searchResults_searchResultsGrid_pagingButtonsPanel">
<span class="gridPagerPageLinkCurrent" 1 ></span>
<a class="gridPagerPageLink" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$searchResults$searchResultsGridPAGE', 2)" target="_self" 2 ></a>
</div>
謝謝你,它像一個魅力工作! –