filesys.createTextFile(¦p¦ó¥Îwrite¤~¯à¼g¨ìB1Àx¦s®æ)
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
filesys.createTextFile(¦p¦ó¥Îwrite¤~¯à¼g¨ìB1Àx¦s®æ)
·PÁ¦U¦ì¤j¤j¤w¸g¼g¥X¨Ó¥i¥H¥ÎLF´«¦æ¤F
¦ý¬O...n¦p¦ó¼g¦bB1ªº¦ì¸mªü?
§Ú¼g§¹ªºµ{¦¡·|Åܦ¨A1:A193³£¦³È
¦ý쥻ªºSHEET1¬OA1:G7³£¦³È
¨ä¥L¬OA8:A193
writen¦p¦ó¼g¤~¯à¼g¦bB1ªü?
Sub Macro1()
'
'
Set filesys = CreateObject("Scripting.FileSystemObject")
Set a = filesys.createTextFile("C:\Documents and Settings\bobchiou\®à±" & "\ah504_8_2.tpl", True)
rec = 1
OO = ThisWorkbook.Sheets("Sheet1").Range("J3")
Do While I <= OO
AB = ThisWorkbook.Sheets("Sheet1").Cells(rec, 1).Value
rec = rec + 1
I = rec
a.write AB & Chr(10)
Loop
a.Close
'
End Sub |
|
PKKO
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
cells(rec,1) where 1 means column A.
2 - column B |
|
ss
|
|
|
|
|
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¦^´_ 2# sunnyso
¬Ý¤£¤ÓÀ´C¡An¦p¦ó¼g¤J§Úªº¥¨¶°¤ºªü?
§ä¤£¨ì´¡¤Jªº¦a¤è= =
Sub Macro1()
'
'
Set filesys = CreateObject("Scripting.FileSystemObject")
Set a = filesys.createTextFile("C:\Documents and Settings\bobchiou\®à±" & "\ah504_8_2.tpl", True)
rec = 1
OO = ThisWorkbook.Sheets("Sheet1").Range("J3")
Do While I <= OO
AB = ThisWorkbook.Sheets("Sheet1").Cells(rec, 1).Value
rec = rec + 1
I = rec
a.write AB & Chr(10)
Loop
a.Close
'
End Sub |
|
PKKO
|
|
|
|
|
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¦^´_ 2# sunnyso
§Ú¬ÝÀ´¤F§A¼gªºªF¦è
¨ºÓ¥u¥Nªí§â§ÚSHEET1ªºAÄæ©Î¬OA~NÄæ¼g¤J
¦ý¬O¿é¥XªºÀÉ®×ÁÙ¬O¥u·|¦bAÄæ¦Ó¤w¤£·|¿é¥X¨ìBÄæ... |
|
PKKO
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
|
ss
|
|
|
|
|
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
§Ú¦b¤½¥qµLªk¤WÀÉ
°²³]§Ú쥻¶}±ÒªºexcelÀɦW¬°(ì©l)
§Ú·Q±Nì©lªºEXCEL¡GA1:G10 & A11:A193¥þ³¡½Æ»s¨ì¥t¥~¤@ÓÀÉ®×(·sÀÉ®×)
¦ý§Úµo²{¥u¯à±Nì©lªºDATA¿é¥X¨ì·sÀɮתºAÄæ¡A
ÁöµM¥i¥H±Nì©lªºBÄæ½Æ»s¡A¦ý¤´µM¥u¯à¿é¥X¨ì·sÀɮתºAÄæ¦ÓµLªk¥Î¦bBÄæ
²³æÁ¿¡G·sÀɮתºBÄæ³£¬OªÅ¥Õªº¡A¥u¦³AÄ榳DATA |
|
PKKO
|
|
|
|
|