- ©«¤l
- 26
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 27
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- OFFICE 2013
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-1-21
- ³Ì«áµn¿ý
- 2021-3-25
|
¦^´_ white5168
¦^´_ vesperlee
½Ð¸Õ¸Õ¬Ý¡I
c_c_lai µoªí©ó 2012-5-1 16:42
§Ú§âCC¤jªºµ{¦¡×§ï§Ú·QnªÑ²¼¦WºÙ,¦ý¬°¦ó·|¶]¥X"¥²¶·¬O±`¼Æ¹Bºâ¦¡"ªº¿ù»~°T®§,½Ð°Ý§Ú¤U±ªº¼gªk¦³¿ù¶Ü?
¨º¤£µMn¦p¦ó§ó§ï¦Û¤v·QnªºªÑ²¼¥N¸¹©O?
½Ð«ü±Ð§Ú³oÓVBA·s¤â,ÁÂÁÂ
Sub a()
x = Worksheets("sheet1").Range("l1")
Const url As String = "http://jsjustweb.jihsun.com.tw/z/zc/zcl/zcl_" & x & ".asp.htm"
Cells.Clear
Set ie = CreateObject("internetexplorer.application") '¨Ï¥Î¦¹¤è¦¡¥i¥H§K°£ "³]©w¤Þ¥Î¶µ¥Ø"
With ie
.Visible = False 'True¬°¶}±Òie, False¬°¤£¶}±Òie
.Navigate url
Do While .ReadyState <> 4 'µ¥«Ýºô¶¶}±Ò
DoEvents
Loop
.ExecWB 17, 2 'Select All
.ExecWB 12, 2 'Copy selection
Sheets("Sheet1").Cells.Select
Range("A1").Activate
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False, NoHTMLFormatting:=True
End With
Columns("A:B").Delete
ie.Quit
MsgBox "¸ê®Æ½Æ»sµ²§ô"
End Sub |
|