- ©«¤l
 - 234 
 - ¥DÃD
 - 19 
 - ºëµØ
 - 0 
 - ¿n¤À
 - 276 
 - ÂI¦W
 - 0  
 - §@·~¨t²Î
 - Windows XP 
 - ³nÅ骩¥»
 - office 2003 
 - ¾\ŪÅv
 - 20 
 - ©Ê§O
 - ¨k 
 - µù¥U®É¶¡
 - 2013-1-7 
 - ³Ì«áµn¿ý
 - 2021-10-7 
 
  | 
                
¦^´_ 5# dou10801  
5¿ï2 
Sub ex1() 
Dim a As Object, b As Object, X%, Y% 
Range([a7], [a7].End(4)).Clear 
Y = 7 
For Each a In [a1].CurrentRegion.Columns 
   For Each b In a.Rows 
      For X = b.Row + 1 To Cells(1, b.Column).End(4).Row 
         Cells(Y, 1) = "[" & Format(Cells(b.Row, b.Column), "0#") & "." & Format(Cells(X, b.Column), "0#") & "]" 
         Y = Y + 1 
      Next 
   Next 
Next 
End Sub 
 
5¿ï3 
Sub ex2() 
Dim a As Object, b As Object, X%, Y% 
Range([a7], [a7].End(4)).Clear 
Y = 7 
For Each a In [a1].CurrentRegion.Columns 
   For Each b In a.Rows 
      For X = b.Row + 1 To Cells(1, b.Column).End(4).Row 
         If X + 1 <= Cells(1, b.Column).End(4).Row Then 
            Cells(Y, 1) = "[" & Format(Cells(b.Row, b.Column), "0#") & "." & Format(Cells(X, b.Column), "0#") & "." & Format(Cells(X + 1, b.Column), "0#") & "]" 
            Y = Y + 1 
         End If 
      Next 
   Next 
Next 
End Sub |   
 
 
 
 |