- ©«¤l
- 25
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 50
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-31
- ³Ì«áµn¿ý
- 2014-6-8
|
¥»©«³Ì«á¥Ñ cudui ©ó 2012-4-22 14:12 ½s¿è
¦A½Ð°Ý¤@¤U~~
§Úì¥ý§ìªº¬Ohtmlªº¸ê®Æ,¥i¥H¤£»Ý¦A³B²zCSVÀɶפJªº°ÝÃD,
(Connection:="URL;http://www.otc.org.tw/ch/stock/aftertrading/otc_quotes_no1430/SQUOTE_AL_" & myear & mmon & nowday & ".html" _
¦ý¬O,¨Ï¥Îhtml¹J¨ìªºª¬ªp¬O~
§ÚÂ^¨ú¨ä¥L¥æ©ö¤éªº®ÉÔ³£¨S°ÝÃD,¦ý¤@¥¹n¶×¤J"2/10","4/10"...µ¥n¤ë 10¤éªº¥æ©ö¸ê®Æ®É,
ӪѦ污°£ÀɦW¥~,¨ä¾l´N·|¬O¤@¤ùªÅ¥Õ...(¦ýn¤ë20¤é.30¤é³£¨S°ÝÃD,©Ò¥HÀ³¸Ó¤£¬O"0"ªº°ÝÃD)
¦Ó§ÚÀˬd¹ê»Ú³sµ²¤]³£¥¿½T,¥i¥H¥¿½T³sµ²¨ì¸Óºô¶
(http://www.otc.org.tw/ch/stock/aftertrading/otc_quotes_no1430/SQUOTE_AL_1010410.html)
¦Ó¨Ï¥ÎCSV«hµL¦¹°ÝÃD~~
¦³¨S¦³¤j¤j¥i¥HÀ°¦£¸Ñ´b¤@¤U³o¨ì©³¬O¦]¬°¤°»ò????
ÁÂÁÂ!
ªþ¤Wì©l½X¦p¤U:-
- '¤WÂdӪѾú¥v¸ê®Æ
- With ActiveSheet.QueryTables.Add(Connection:="URL;http://www.otc.org.tw/ch/stock/aftertrading/otc_quotes_no1430/SQUOTE_AL_" & myear & mmon & nowday & ".html" _
- , Destination:=ActiveCell.Offset(2, 0))
-
- .FieldNames = True
- .RowNumbers = False
- .FillAdjacentFormulas = True
- .PreserveFormatting = True
- .RefreshOnFileOpen = False
- .BackgroundQuery = True
- .RefreshStyle = xlInsertDeleteCells
- .SavePassword = False
- .SaveData = False
- .AdjustColumnWidth = True
- .RefreshPeriod = 0
- .WebSelectionType = xlSpecifiedTables
- .WebFormatting = xlWebFormattingNone
- .WebTables = "1,2,3,4"
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .WebSingleBlockTextImport = False
- .WebDisableDateRecognition = False
- .WebDisableRedirections = False
- On Error Resume Next
- .Refresh BackgroundQuery:=False
-
- End With
½Æ»s¥N½X |
|