- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- XP7
- ³nÅ骩¥»
- windos
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2017-6-30
- ³Ì«áµn¿ý
- 2021-5-11
|
[µo°Ý] ¦b¤@µ§¸ê®Æ¸Ì± ¥h±¼0 & ªÅ®æ µM«á«·s±Æ§Ç
½Ð°Ý¤@¤U,»Ýn§â¸ê®Æ¸Ì±ªº0»PªÅ®æ¥h°£,µM«á±q¤p¨ì¤j±Æ§Ç
¦Û¤v¼g¤F¤@ÓVBAµ{¦¡,¦ý¬Oµoı¸ê®Æ¬O¤pµ§¼Æ®É¨S¦³°ÝÃD,¥i¥H¥h±¼0¸òªÅ®æ µM«á±q¤p¨ì¤j±Æ¦n
¦ý¬Oµ§¼Æ¶W¹L¤@¸Uµ§¤§«á,·|µo²{¨º¨Ç¸ê®Æ¥u¦³¬Y³¡¤À¦³³¡¦b¥h±¼0¸ò«·s±Æ§Ç,³Ñ¤Uªº«h·|¸É¤W #N/A
¤£ª¾¹D¬Oµ{¦¡þÓ³¡¤À¥X²{°ÝÃD¤F,
½Ð°Ý¬O§_¯àÀ°¦£×§ïµ{¦¡½X¡AÁÂÁÂ,·P®¦ :) :)
¥h0©MªÅ®æ ±q¤p¤j¨ì±Æ§Ç.rar (831.35 KB)
µ{¦¡½X:
Sub ±Æ§Ç()
Application.ScreenUpdating = False
Dim myarr() As Variant
a = Application.WorksheetFunction.CountA(Range("B2:B100000"))
ReDim myarr(a) As Variant
Dim Rng As Range
k = 0
For i = 2 To Range("A2").End(xlDown).Row
If Cells(i, "B") <> 0 And Cells(i, "B") <> "" Then
myarr(k) = Cells(i, "B")
k = k + 1
End If
Next
[B2:B1048576].Clear
Set Rng = Range("B2").Resize(k)
Rng.Value = Application.Transpose(myarr)
Rng.Sort key1:=Rng(1), order1:=xlAscending, Header:=xlNo
Application.ScreenUpdating = True
End Sub |
|