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

¦p¦ó§âEXCELªºÀx¦s®æ½d³òA1:H3000¿é¥X¨ì°O¨Æ¥»Àɮתº D:\SP20110801.TXT

¦^´_ 10# metrostar
  1. Sub test()
  2. With Sheet1
  3.     For r = 1 To .[A65536].End(xlUp).Row
  4.         If r = 1 Then
  5.             Mystr = Array("<TICKER>", "<DTYYYYSSDD>", "<OPEN>", "<HIGH>", "<LOW>", "<CLOSE>", "<VOL>")
  6.         Else
  7.             x = IIf(Sheet2.[j1] = "", "'", Sheet2.[j1]) & Format(Val(.Cells(r, 1)), "0000")
  8.             Mystr = Array(x, Format(Date, "yyyymmdd"), .Cells(r, 3), .Cells(r, 4), .Cells(r, 5), .Cells(r, 6), .Cells(r, 8))
  9.         End If

  10.        Sheet2.Cells(r, 1).Resize(, 7) = Mystr
  11.    Next
  12. End With
  13. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_  metrostar
Hsieh µoªí©ó 2011-8-16 14:46


¦hÁ ¶W¯Å«Ó­ôª©¥D , ¤£¦n·N«ä©O ? ¾Ç©f¨Sªí¹F²M·¡

¥u¦³¯Â¼Æ¦r­nÅÜ(¤£¨¬4¦ì¸É¨¬4¦ì) , ¨ä¥¦ ¼Æ¦r+¤å¦r (¤£ÅÜ) ÁÂÁÂÅo

TOP

  1. Sub test()
  2. With Sheet1
  3.     For r = 1 To .[A65536].End(xlUp).Row
  4.         If r = 1 Then
  5.             Mystr = Array("<TICKER>", "<DTYYYYSSDD>", "<OPEN>", "<HIGH>", "<LOW>", "<CLOSE>", "<VOL>")
  6.         Else
  7.             x = IIf(Sheet2.[j1] = "", "'", Sheet2.[j1]) & Format(.Cells(r, 1), "0000")
  8.             Mystr = Array(x, Format(Date, "yyyymmdd"), .Cells(r, 3), .Cells(r, 4), .Cells(r, 5), .Cells(r, 6), .Cells(r, 8))
  9.         End If

  10.        Sheet2.Cells(r, 1).Resize(, 7) = Mystr
  11.    Next
  12. End With
  13. End Sub
½Æ»s¥N½X
¦^´_ 12# metrostar
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¤Ó´Î¤F,¥i¥H¤F
¦hÁ³o¦ì¶W¯Å«Ó­ôª©¥D
¾Ç©f«D±`·P°Ê©O
±z¯u¬O¤Ó±j¤Ó±j¤F
·PÁ±z¨Ã¯¬¶P±z
©¯ºÖ¦n¹B¥Ã»·­°Á{±z¨­¤W

TOP

¦^´_ 14# metrostar

¾Ç©f¤S¦³§Oªº°ÝÃD³Â·Ð¤j®a¤F

¿é¥X¨ì SH9.TXT ®É,¬°¤°»ò·|¥X²{ªÅ®æ (¤£­nªÅ®æ¤~¬O¥¿½Tªº)
½Ð¬Ý¹Ï¤ù

grt.rar (105.32 KB)

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD