½Ð°Ý:¦p¦ó¤U¸üPDF? ³sµ²¦³ÂI¯S§O(§t¦³ javascriptªº<a>³sµ²)
- ©«¤l
- 17
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 33
- ÂI¦W
- 0
- §@·~¨t²Î
- XP SP3
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-4-30
- ³Ì«áµn¿ý
- 2012-12-21
|
½Ð°Ý:¦p¦ó¤U¸üPDF? ³sµ²¦³ÂI¯S§O(§t¦³ javascriptªº<a>³sµ²)
§Ú·Qn°µ¦Û°Ê¤U¸üªººô§}¦³ÂI¯S§O(§t¦³javascriptªº<a>³sµ²)¡A¦pªþ¹Ï¡C
¦]¬°¨Ï¥Î¥H¤Uµ{¦¡½X¡B¥i¥H¥´¶} DOC ÀɮסA
¦ý¤£ª¾¹D¬°¤°»ò¡A¨Ã¤£¯à¶}±ÒPDFªººô¶³sµ²¡C¦]¬°¥´¶}³sµ²«á¤~¯à¦A«ö¥kÁä¡A¥t¦s·sÀÉ¡C
½Ð°Ý¤j¤j¡A¸Ó¦p¦ó°µ¤~¦n? ÁÂÁÂ!!- Sub Test()
- Set IE = CreateObject("InternetExplorer.Application")
- IE.Navigate ("http://doc.twse.com.tw/server-java/t57sb01?step=1&colorchg=1&co_id=3013&year=99&mtype=F&")
- IE.Visible = True
- searchText = "2010_3013_20100609F02.pdf"
- Do While IE.ReadyState <> 4
- Loop
- countLinks = IE.Document.Links.Length
- For i = 0 To countLinks - 1
- currentText = IE.Document.Links(i).innerText
- If currentText Like searchText Then
- oldURL = IE.LocationURL
- Debug.Print i, oldURL
- IE.Document.getElementsByTagName("a").Item(i).Click
- Do While oldURL = IE.LocationURL
- ' javascript:readfile2("F","3013","2010_3013_20100609F02.pdf");
- Loop
- i = countLinks
- End If
- Next
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|