- ©«¤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
|
¦^´_ 21# GBKEE
G¤j,ÁÂÁ±zªº@¤ß«ü±Ð,¨Ì±zªº¤è¦¡,§Úªº¼gªk¦p¤U:
¦³¥H¤U´XÓ°ÝÃD
1.¬°¦ó§Ú¤w«ü©w¥N¸¹¦bA1,¦ý±a¥XªíÀY,¦Ó¨S¦³¸ê®Æ?
2.¬°¦ó§Ú«ü©w©ñ¸m¦ì¸m©óRange("AA1").Activate,¶]§¹ÁÙ¬O©ñ¦bA2?
Sub Test()
Dim x, ur As String
x = Worksheets("sheet1").Range("a1")
Const url As String = "http://jsjustweb.jihsun.com.tw/z/zc/zcl/zcl_AAAA.asp.htm"
MsgBox url
ur = "http://jsjustweb.jihsun.com.tw/z/zc/zcl/zcl_" & x & ".asp.htm"
MsgBox ur
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("AA1").Activate
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False, NoHTMLFormatting:=True
End With
Columns("A:B").Delete
ie.Quit
MsgBox "¸ê®Æ½Æ»sµ²§ô"
End Sub
·Ð½ÐG¤j¦AÀ°§Ú¬Ý¬Ý,ÁÂÁ |
|