- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-8-20
- ³Ì«áµn¿ý
- 2015-8-20
|
¤j®a¦n¡A§Ú¬OèèÆp¬ãVBA»yªkªº·s¤â...
¥Ñ©ó¤âÀY¦³¤u§@¥²¶·±Nexcelªº¸ê®Æ¨Ì§Ç¶ñ¤Jºô¶¤¤ªºªÅ®æ
EXCEL¦³AÄæ»PBÄd¨âÄ檺¸ê®Æ
·Qn¨Ì·Ó A1 (²Ä¤@µ§¸ê®Æ)¶ñ¤J ²Ä1¸¹³æ¸¹
B1(²Ä¤@µ§¸ê®Æªº±¾¸¹½X) ¶ñ¤J²Ä1¸¹ªº±¾¸¹½X
¥Ø«e¹J¨ìªº°ÝÃD¬O ¥H¤U¦Cªºµ{¦¡½X¨Ó¶]Àɮתº¸Ü
Private Sub UserForm_Activate()
Dim myIE As InternetExplorer
Dim url$, sDoc As Object
Dim x As integer
Set myIE = WebBrowser1
With myIE
url = "¤½¥q¤ººô"
.Navigate url
Do While .Busy Or .ReadyState <> READYSTATE_COMPLETE
DoEvents
Loop
With .Document
Set x = Row(1, 0)
For Each sDoc In .all.tags("input")
If sDoc.Name = "item" Then sDoc.Value = Range("A1").Offset(x, 0)
If sDoc.Name = "mailNumber" Then sDoc.Value = Range("B1").Offset(x - 1, 0)
x = x + 1
Next
For Each sDoc In .all.tags("input")
If InStr(sDoc.Value, "µn¤J") > 0 Then
sDoc.Click
End If
Next
End With
End With
End Sub
¥Ñ©ó§Ú¦³100µ§¥H¤Wªº¸ê®Æ¡A¦ý¬O¥L·|¦bAÄ椤¸õ¸¹¡A¹ïÀ³ªºBÄæ¤]·|¦³»~®t1Äæ(¨Ò¦pAÄæ²Ä¤@µ§¸ê®Æ·|¹ï¨ìBÄæ²Ä¤Gµ§¸ê®Æ¡A
¬Gµ{¦¡½X§Ë¦¨Range("B1").Offset(x - 1, 0))
°õ¦æ§¹µ{¦¡¤§«á¡A³Ì¦h¥u¶]¨ì27µ§...¤£ª¾¹D¸Ó«ç»ò¼Ëקï³oÓ¿ù»~¡A½Ð¤j®aÀ°¦£¡AÁÂÁÂT.T |
|