¦^´_ 2# jackdream
±z¦n!¦n¹³¨S¦³§ä¨ì§Únªº!§Ú§â§ÚªºVBA PO¤W¨Ó¦n¤F!
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 2 And Target.Value <> "" Then '¦¹³B2ªí¥Ü¦bBÄæ¥B¸ê®Æ¤£µ¥©óªÅ
Cancel = True '¨ú®øÂùÀ»¨Æ¥ó(קï¸ê®Æn«öF2©Îª½±µ¦bfx°Ï¤W§ï)
With CreateObject("InternetExplorer.Application")
.Navigate "http://maps.google.com.tw/" 'ÂsÄýgoogle
Do While .Busy Or .ReadyState <> 4
DoEvents
Loop
.Document.all("d_d").innerText = "¤j·ËÂíûªL¸ô¤T¬q257«Ñ33§Ë45¸¹" '³o¤@Ó¬O¥Xµo¦a
.Document.all("d_daddr").innerText = Target '³o¤@Ó¬O¥Øªº¦a(§YbÄæ¤W¸ê®Æ)
.Document.all("d_sub").Click '°e¥X°T®§
.Visible = True '¶}±Òºô¶µøµ¡
End With
End If
End Sub
¬õ¦âªº³¡¤À¦n¹³¬O¶}±ÒIEÂsÄý¾¹¦ý¬O§Ú·Q§ï¦¨¤õª°ÂsÄý¾¹
¥i¬O§Ú§ó§ï¦¨¤õª°ÂsÄý¾¹¥H«á¥Lªº¤U¤@¦æ¤S·|¥X¿ù!½Ð¤j¤jÀ°¦£!ÁÂÁÂ!