Dim sCount%, i%, j%
sCount = Worksheets.Count
If sCount = 1 Then Exit Sub
For i = 1 To sCount - 1
For j = i + 1 To sCount
If Worksheets(j).Range("b2").Value < Worksheets(i).Range("b2") Then
Worksheets(j).Move before:=Worksheets(i)
End If
Next
Next
請問版大這樣寫與您寫的是否有差異?作者: luffyzoro 時間: 2011-11-30 10:49
Dim sCount%, i%, j%
sCount = Worksheets.Count
If sCount = 1 Then Exit Sub
For i = 1 To sCount - 1
For j = i + 1 To sCount
If Worksheets(j).Range("b2").Value < Worksheets(i).Range("b2") Then
Worksheets(j).Move before:=Worksheets(i)
End If
Next
Next
請問版大這樣寫與您寫的是否有差異?作者: GBKEE 時間: 2011-11-30 11:11