ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[¤À¨É] ¤j½L¨C¤ë¨C¤Ñ¾ú¥v¦¨¥æ¶q»Pª÷ÃB¤U¸ü

¦^´_ 12# usana642
§@¥Î¤¤ªº¤u§@ªí  C1 ¦³¿é¤J ¦~«×¶Ü? C2 ¦³¿é¤J ¤ë¥÷¶Ü?
ªþ¤W§Aªº Àɮ׬ݬÝ

TOP

¦^´_ 10# GBKEE

ÁÂÁÂGBKEEªº¼ö¤ß¤À¨É
§Ú¸Õ¹Lµo²{,¤U¸üªº¸ê®Æ³£Àx¦s¦bAÄæ¦ì,½Ð°Ý­n¦p¦ó§ï¦¨¥H¤U¸ê®Æ®æ¦¡Àx¦s,ÁÂÁ±z
AÄæ     BÄæ           CÄæ       DÄæ       EÄæ          FÄæ          GÄæ
¤é´Á  ¦¨¥æªÑ¼Æ  ¦¨¥æª÷ÃB  ¦¨¥æµ§¼Æ  µo¦æ¶q  ¥[ÅvªÑ»ù«ü¼Æ  º¦¶^ÂI¼Æ
stock

TOP

¦^´_ 10# GBKEE

¤ÓÆg¤F
«D±`·PÁÂGBKEE¤j¤jªº¼ö¤ß¤À¨É
stock

TOP

¦^´_ 9# turbine
  1. Option Explicit
  2. Private Sub ¤j½L¦¨¥æ¸ê°T()
  3.     Dim xlTheYear As String, xlTheMonth As String, xlTheFile As String
  4.     Dim Sh As Worksheet
  5.     xlTheYear = Format(Range("C1"), "0000")  '­×§ï¦r¦ê®æ¦¡
  6.     xlTheMonth = Format(Range("C2"), "00")   '­×§ï¦r¦ê®æ¦¡
  7.     Set Sh = ThisWorkbook.Sheets.Add         '·s¼W¤u§@ªí
  8.     Sh.Name = xlTheYear & "_" & xlTheMonth   '·s¼W¤u§@ªí©R¦W
  9.     xlTheFile = "http://www.twse.com.tw/ch/trading/exchange/FMTQIK/FMTQIK2.php?STK_NO=&myear=" & xlTheYear & "&mmon=" & xlTheMonth & "&type=csv"
  10.     With Workbooks.Open(xlTheFile)
  11.         .Sheets(1).UsedRange.Copy Sh.[a1]
  12.         .Close 0
  13.     End With
  14.     Sh.Cells.EntireColumn.AutoFit            '½Õ¾ãÄæ¼e
  15.     Sh.Columns("A:A").ColumnWidth = 28.56
  16. End Sub
½Æ»s¥N½X

TOP

«z¡I¶W¤è«Kªº~~~
ÁÂÁ¤j¤jªº¤À¨É~
¤×¨äÁÂÁÂGBKEEª©¥DªºÂ²©öª©~~~
¦ý¤p§Ì²{¦b¦³¤@­Ó°ÝÃD...­n«ç»ò¼g¥X¤@­Óµ{¦¡¡A»Ý¨D¬O¡G
¤U¸ü§¹«áªº¸ê®Æ¡A¦Û°ÊÀx¦s¨ì¥t¤@­ÓSHEET¡]Á`ªí¡^¡A
¤U¸ü¥t¤@®É´Áªº¸ê®Æ«á¡A¦A¦Û°ÊÀx¦s¦bÁ`ªí¤ºªÅ¥ÕÀx¦s®æ¡H
¨Ã¥B¬O¦V¤UÀx¦s³o¼Ë¡H

TOP

¦^´_ 4# white5168

ª©¤j¨¯­W²¤Æªºµ{¦¡½X¡AÃø¹D§A¨S´ú¸Õ¬Ý¬Ý?
ªP¶Oª©¤jªº±Ð¾Ç
µ¹GBKEEª©¥D«ö­ÓÆg

TOP

¦^´_ 7# usana642
1.½Æ»sµ{¦¡½X¨ì ¤@¯ë¼ÒèÊ,©Î ThisWorkbook¼ÒèÊ    2.¦b¤u§@ªí¤W ´¡¤J§Ö¨ú¹Ï®×,   3.±N¹Ï®×ªº¥¨¶°«ü©w¦¹µ{§Ç
©ó¤u§@ªí ªº C1 :  ¿é¤J¦è¤¸¦~¥÷   C2 :  ¿é¤J¤ë¥÷    «ö¤U §Ö¨ú¹Ï®× ´N¥i¥H
  1. Sub ¤j½L¦¨¥æ¸ê°T()
  2.     Dim xlTheYear As String, xlTheMonth As String, xlTheFile As String
  3.     xlTheYear = Format(Range("C1"), "0000")  '­×§ï¦r¦ê®æ¦¡
  4.     xlTheMonth = Format(Range("C2"), "00")     '­×§ï¦r¦ê®æ¦¡
  5.     UsedRange.Offset(4).Clear
  6.     xlTheFile = "http://www.twse.com.tw/ch/trading/exchange/FMTQIK/FMTQIK2.php?STK_NO=&myear=" & xlTheYear & "&mmon=" & xlTheMonth & "&type=csv"
  7.     With Workbooks.Open(xlTheFile)
  8.         .Sheets(1).UsedRange.Offset(2).Copy [a5]
  9.         .Close 0
  10.     End With
  11. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# GBKEE
ÆZ¤£¿ùªº¼gªk¡I
¤@¤ä Private Sub ¤j½L¦¨¥æ¸ê°T_Click() ´N§¹¦¨¤F©Ò¦³ªº§@·~¡C

TOP

¦^´_ 4# white5168
¸Õ¸Õ¬Ý

    ¤j½L¨C¤ë¨C¤Ñ¾ú¥v..rar (7.64 KB)

TOP

¥»©«³Ì«á¥Ñ white5168 ©ó 2012-6-23 23:03 ½s¿è

ª©¥D,½Ð°Ý¦³¦Û¦æ½T»{¹L¥H¤Wµ{¦¡½X¬O¥i¥H±N¸ê®Æ¦¨¥\²£¥Í¦bsheet1¶Ü?

TOP

        ÀR«ä¦Û¦b : ¦³®É·í«äµL®É­W¡A¦n¤Ñ­n¿n«B¨Ó³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD