Board logo

標題: Excel vba sendkey 幾好用 [打印本頁]

作者: bongbong3481    時間: 2023-8-22 19:39     標題: Excel vba sendkey 幾好用

係公司要用web page 入大量data (同時copy 資料入excel),正路用python 搞應該快而準,但自己吾熟python,只能用excel vba send key + mouse api + set cursor,發覺出黎效果都吾錯,但都有缺點,速度吾快,精準度未必做到100% 。

只是以下幾種code 就解決到:
for loop
set cursor or sendkey tab
mouse click
sendkey cell value (比ctrl v 好用)
ctrl c
select cell
activesheet paste (比ctrl v 好用)
sleep





歡迎光臨 電腦領域 HKEPC Hardware (https://h2.hkepc.com/forum/) Powered by Discuz! 7.2