¦p¦ó§âEXCELªºÀx¦s®æ½d³òA1:H3000¿é¥X¨ì°O¨Æ¥»Àɮתº D:\SP20110801.TXT
- ©«¤l
- 227
- ¥DÃD
- 3
- ºëµØ
- 1
- ¿n¤À
- 273
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-3-22
- ³Ì«áµn¿ý
- 2013-1-29
|
mystr = Array(x, Application.Text(Date, "yyyymmdd"), .Cells(r, 3), .Cells(r, 4), .Cells(r, 5), .Cells(r, 6), .Cells(r, 8))
§ï³o¦æ |
|
|
|
|
|
|
- ©«¤l
- 55
- ¥DÃD
- 20
- ºëµØ
- 0
- ¿n¤À
- 80
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- officexp
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2010-7-5
- ³Ì«áµn¿ý
- 2013-8-25
|
¥»©«³Ì«á¥Ñ metrostar ©ó 2011-8-3 14:44 ½s¿è
«Óô¾Çªø°µªk¬O¥¿½Tªº,·P®¦°Õ
¦³ÂIÂI¤p°ÝÃD,¤é´Án·í¤Ñªº¦~¤ë¤é¤é´Á
¹³¤µ¤Ñ¬O 20110803 , ¦pªG©ú¤Ñ¬O 20110804 |
|
|
|
|
|
|
- ©«¤l
- 227
- ¥DÃD
- 3
- ºëµØ
- 1
- ¿n¤À
- 273
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-3-22
- ³Ì«áµn¿ý
- 2013-1-29
|
¦^´_ 3# metrostar
¹ï¤£°_¡A§Ú¤£¬O«Óô¡A¾Çªø§ó¤£´±·í¡A¤~è°_¨B¾Ç²ß¡C- Sub test()
- With Sheet1
- For r = 1 To .[A65536].End(xlUp).Row
- If r = 1 Then
- mystr = Array("<TICKER>", "<DTYYYYSSDD>", "<OPEN>", "<HIGH>", "<LOW>", "<CLOSE>", "<VOL>")
- Else
- x = .Cells(r, 1)
- If IsNumeric(x) Then
- x = .[j1] & Application.Text(x, "0000")
- Else
- x = [j1] & x
- End If
- mystr = Array(x, "20110802", .Cells(r, 3), .Cells(r, 4), .Cells(r, 5), .Cells(r, 6), .Cells(r, 8))
- End If
- Sheet2.Cells(r, 1).Resize(, 7) = mystr
- Next
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 55
- ¥DÃD
- 20
- ºëµØ
- 0
- ¿n¤À
- 80
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- officexp
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2010-7-5
- ³Ì«áµn¿ý
- 2013-8-25
|
¥»©«³Ì«á¥Ñ metrostar ©ó 2011-8-3 13:33 ½s¿è
¦^´_ metrostar
µ²ªG¤£ª¾¬O§_¥¿½T
chin15 µoªí©ó 2011-8-3 08:15
¤Ó´Î¤F,¥i¥H¤F
¦hÁ³o¦ì«Óô¾Çªø
¾Ç©f«D±`·P°Ê©O
±z¯u¬O¤Ó±j¤Ó±j¤F
·PÁ±z¨Ã¯¬¶P±z
©¯ºÖ¦n¹B¥Ã»·°Á{±z¨¤W
¾Ç©f¥t¥~¤@°ÝÃD,¦pªG¤£¿é¥X EXPORT TO TXT , ¦Ó§âµ²ªG¿é¥X SHEET2©O , ¤Sn«ç»ò°µ©O?
½Ð¬Ý·sªþ¤WªºÀÉ®× |
-
-
Book3.rar
(8.73 KB)
|
|
|
|
|
|
- ©«¤l
- 227
- ¥DÃD
- 3
- ºëµØ
- 1
- ¿n¤À
- 273
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-3-22
- ³Ì«áµn¿ý
- 2013-1-29
|
¦^´_ 1# metrostar
µ²ªG¤£ª¾¬O§_¥¿½T- Sub test()
- Open "d:\SP20110801.txt" For Output As #1
- For r = 1 To [A65536].End(xlUp).Row
- If r = 1 Then
- c = Cells(1, 11).Resize(, 7)
- mystr = Join(Application.Transpose(Application.Transpose(c)), ",")
- Else
- x = Cells(r, 1)
- If IsNumeric(x) Then
- x = [j1] & Application.Text(x, "0000")
- Else
- x = [j1] & x
- End If
- mystr = x & "," & "20110801" & "," & Cells(r, 3) & "," & Cells(r, 4) & "," & Cells(r, 5) & "," & Cells(r, 6) & "," & Cells(r, 8)
- End If
- Print #1, mystr
- Next
- Close #1
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|