With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate URL
Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
For Each n In .Document.getelementsbytagname("INPUT") '³oÓ°j°é§ä¨ì«ö¶s¬O²Ä´XÓ¿é¤J¶µ
kn = n.Value
If kn = "¬d¸ß" Then Exit For
s = s + 1
Next .Document.all("input_stock_code").Value = 6121 'n¬dªº¥N½X
.Document.getelementsbytagname("INPUT")(s).Click '<=====¥¨¶°°õ¦æ¨ì¦¹´N¿ù»~,½Ð°Ý³o¤@¦æ¬O¬°¦ó·N,§ä¤F«Ü¤[¬d¤£¥X¬O¦ó·N
Application.Wait Now + TimeValue("00:00:02") 'µ¥«Ý2¬í§ó·s¸ê®Æ
Set tmp = .Document.getelementsbytagname("table")(79) '<==== (79)¤S¬O¦ó·N??79´Nªí¥Ü²Ä80Óªí®æ
¦¹ºô¶Â^¨ú½Ð´ú¸Õ