- ©«¤l
- 19
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 60
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-9-27
- ³Ì«áµn¿ý
- 2017-12-21
|
¥»©«³Ì«á¥Ñ ken759727 ©ó 2012-6-17 22:59 ½s¿è
§Ú¬O±Nexcel ¸Ì±ªº¼ÆÈ ¿é¥X¦¨°O¨Æ¥»ÀÉ®×
°ÝÃD1. excel ¸Ì±Åã¥Ü 0.01156258 ¦ý¬O¿é¥X¦¨µ§°O¥»¤§«á¡A«oÅܦ¨ 1.15625797922245E-02¡A½Ð°Ý§Ún¦bþ¤@³¡¤À°µ×§ï
°ÝÃD2.½Ð°Ý¿é¥X¸ô®|¥Ø«e¬Oª½±µ¼g¦b E:\ ¡A½Ð°Ý¦³¿ìªk§ï¦¨ ¿é¥X¸ô®|»Pexcel ¸ô®|¬Û¦P¶Ü
°ÝÃD3.¥Ø«e¥\¯à¬O§â A10~J311 ¿é¥X¦¨ °O¨Æ¥»ÀɮסA¦³þÃä¬O§_¯à§ï¨}ªº
ÁÂÁ¦U¦ì- Sub ¿é¥X()
- Dim i As Integer
- Dim j As Integer
- Dim a As Object
- Sheet1.Activate
- fd = 20 & Range("A2") & "_" & Range("B2") & Range("C2") '¦WºÙ
- Set fs = CreateObject("Scripting.FileSystemObject")
- Set a = fs.CreateTextFile("E:\" & fd & ".TXT", True)[color=Red] '¸ô®|
- i = 311
- j = 10
- For x = 10 To i 'Step 3¡@'¸ê®Æ½d³ò
- For y = 1 To j 'Step 1¡@
- a.write (Cells(x, y))
- If y <= j - 1 Then a.write (vbTab)
- Next
- a.write (vbCrLf)
- Next
- a.Close
- Range("S1") = fd '´ú¦¡¦WºÙ
- End Sub
½Æ»s¥N½X |
|