ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] VBA ¦Û°Ê´¡¤J¦ÜªÅ¥Õ®æ¤è¦¡

Private Sub CommandButton1_Click()
Dim C&, i&
C = Cells(1, Columns.Count).End(xlToLeft).Column + 1
For i = 1 To 3: Cells(i, C) = UserForm1("TextBox" & i): Next
Range([B1], Cells(3, C)).Sort Key1:=[B1], Order1:=xlAscending, Header:=xlNo, _
¡@¡@¡@OrderCustom:=1, MatchCase:=False, Orientation:=xlLeftToRight
End Sub

TOP

¦^´_ 13# lichang


Private Sub CommandButton1_Click()
Dim C&, i&
With Sheets("Sheet1")¡@
¡@¡@¡@C = .Cells(1, Columns.Count).End(xlToLeft).Column + 1
¡@¡@¡@For i = 1 To 3: .Cells(i, C) = UserForm1("TextBox" & i): Next
¡@¡@¡@Range(.[B1], .Cells(3, C)).Sort Key1:=.[B1], Order1:=xlAscending, Header:=xlNo, _
¡@¡@¡@¡@¡@OrderCustom:=1, MatchCase:=False, Orientation:=xlLeftToRight
End With
End Sub

ª`·N¬õ¦âªº . ¤£¥iº|±¼¡ã¡ã

TOP

¦^´_ 15# lichang


Sub TEST()
Dim C&
With Sheets("¤u§@ªí2")
¡@¡@¡@C = .Cells(10, Columns.Count).End(xlToLeft).Column + 1
¡@¡@¡@Range(.[C10], .Cells(15, C)).Sort Key1:=.[C10], Order1:=xlAscending, Header:=xlNo, _
¡@¡@¡@¡@¡@OrderCustom:=1, MatchCase:=False, Orientation:=xlLeftToRight
End With
End Sub

¥H¤W´ú¸Õ¢Ý¢Ù¡A¤£¹L§Ú¬OOFFICE 2000¡A
±z¥i¨Ï¥Î¿ý»s¤è¦¡¨ú±o¡e¾î¦V±Æ§Ç¡fµ{¦¡½X¡A¦A®M¦Ü Sort ¨º¦æ¬Ý¬Ý¡ã¡ã

TOP

        ÀR«ä¦Û¦b : ¤H¥Í³Ì¤jªº¦¨´N¬O±q¥¢±Ñ¤¤¯¸°_¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD