- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 7# usana642
1.½Æ»sµ{¦¡½X¨ì ¤@¯ë¼ÒèÊ,©Î ThisWorkbook¼ÒèÊ 2.¦b¤u§@ªí¤W ´¡¤J§Ö¨ú¹Ï®×, 3.±N¹Ï®×ªº¥¨¶°«ü©w¦¹µ{§Ç
©ó¤u§@ªí ªº C1 : ¿é¤J¦è¤¸¦~¥÷ C2 : ¿é¤J¤ë¥÷ «ö¤U §Ö¨ú¹Ï®× ´N¥i¥H- Sub ¤j½L¦¨¥æ¸ê°T()
- Dim xlTheYear As String, xlTheMonth As String, xlTheFile As String
- xlTheYear = Format(Range("C1"), "0000") 'קï¦r¦ê®æ¦¡
- xlTheMonth = Format(Range("C2"), "00") 'קï¦r¦ê®æ¦¡
- UsedRange.Offset(4).Clear
- xlTheFile = "http://www.twse.com.tw/ch/trading/exchange/FMTQIK/FMTQIK2.php?STK_NO=&myear=" & xlTheYear & "&mmon=" & xlTheMonth & "&type=csv"
- With Workbooks.Open(xlTheFile)
- .Sheets(1).UsedRange.Offset(2).Copy [a5]
- .Close 0
- End With
- End Sub
½Æ»s¥N½X
|
|