- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 3# ianlcc
¤G¡B¤u§@ªí2
A1Äæ¦ì¡GAAA¡]^¤å¦r¡^
B1Äæ¦ì¡GBBB¡]^¤å¦r¡^
C1Äæ¦ì¡GCCC¡]^¤å¦r¡^ 'ªþÀɬO¼Æ¦r
D1¡ãD20¡G¼Æ¦r(°²³]¨ì²Ä20¦C) 'ªþÀɬO^¤å¦r
¡÷¶×¥XTXTÀÉÅܦ¨¡G
①_AAA (BBB_D1 BBB_D2 BBB_D3 BBB_D4¡K) CCC
②¦pªGDÄæ¦ì¥u¦³D1¦³¼Æ¦rªº¸Ü¡]D2¡ãD20ªÅ¥Õªº¸Ü¡^¡A´NÅܦ¨_AAA BBB_D1 CCC 'ªþÀɬOC1
③¦Û°Ê§PÂ_¦pªGDÄæ¶ñ¤Jªº¼Æ¦r¥u¦³²Ä10¦Cªº¸Ü¡A¥u·|¥[¨ìBBB_ «á±´N¥u·|¶ñ¨ì²Ä10¦Cªº¼Æ¦r¡C - Option Explicit
- Sub Ex_txt(Sh As String, A As String) '¿é¥X¤å¦rÀÉ
- Dim fs As Object
- Set fs = CreateObject("Scripting.FileSystemObject")
- Set fs = fs.CreateTextFile("d:\" & Sh & ".txt", True)
- fs.WriteLine (A)
- fs.Close
- End Sub
- Sub Ex_¤u§@ªí1()
- Dim C As Range, A As String
- With Sheets("¤u§@ªí1")
- A = "_" & .Range("a1")
- For Each C In .UsedRange.Columns("B:D").Rows
- A = A & " " & Join(Application.Transpose(Application.Transpose(C.Value)), " ")
- Next
- Ex_txt .Name, A
- End With
- End Sub
- Sub Ex_¤u§@ªí2()
- Dim C As Range, A As String, Ar
- With Sheets("¤u§@ªí3")
- For Each C In .UsedRange.Columns(3).Cells 'C1Äæ¦ì¡GCCC¡]^¤å¦r¡^'ªþÀɬO¼Æ¦r
- A = A & .Range("B1") & "_" & C & " "
- Next
- If .UsedRange.Columns(3).Cells.Count > 1 Then
- A = "_" & .Range("a1") & " (" & Mid(A, 1, Len(A) - 1) & ") " & .Range("D1")
- Else 'DÄæ¦ì¥u¦³D1¦³¼Æ¦rªº¸Ü¡]D2¡ãD20ªÅ¥Õªº¸Ü¡^¡A´NÅܦ¨_AAA BBB_D1 CCC 'ªþÀɬOC1
- A = "_" & .Range("a1") & " " & A & .Range("D1")
- End If
- Ex_txt .Name, A
- End With
- End Sub
½Æ»s¥N½X |
|