VBA ¥Î¦r¨åªº¤è¦¡´£¥h¤£«½Æ¤Î¤p¨ì¤jªº±Æ§Ç
- ©«¤l
- 75
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 109
- ÂI¦W
- 0
- §@·~¨t²Î
- windows XP
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2015-4-19
- ³Ì«áµn¿ý
- 2024-8-10
|
VBA ¥Î¦r¨åªº¤è¦¡´£¥h¤£«½Æ¤Î¤p¨ì¤jªº±Æ§Ç
¦U¦ì¤j¤j:
½Ð°Ý¦p¦ó¥Î VBA ¤¤ ¥Î¦r¨åªº¤è¦¡ ±q¤p¨ì¤jªº±Æ§Ç
§Ú¥u¼g¨ì¤£«½Æ¡A±Æ§Ç´N¥d¦í¤F¡C
Sub text()
Dim d As Object, arr, brr
Set d = CreateObject("scripting.dictionary")
arr = Range("A2:A" & Cells(Rows.Count, 1).End(xlUp).Row)
ReDim brr(1 To UBound(arr), 1 To 1)
For i = 1 To UBound(arr)
s = arr(i, 1)
If Not d.exists(s) Then
d(s) = ""
k = k + 1
brr(k, 1) = arr(i, 1)
End If
Next
Range("B:B").ClearContents
Range("B1").Value = "µ²ªG"
With Range("B2").Resize(k, 1)
.NumberFormat = "@"
.Value = brr
End With
Set d = Nothing
end sub
VBA¦r¨å±Æ§Ç¤è¦¡.zip (5.93 KB)
|
|
|
|
|
|
|
- ©«¤l
- 111
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 156
- ÂI¦W
- 0
- §@·~¨t²Î
- Window
- ³nÅ骩¥»
- office 365
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2017-8-14
- ³Ì«áµn¿ý
- 2023-6-26
|
¦^´_ 1# kim223824
Ó¤H½m²ß¡A¼Æȱq¤p¨ì¤j±Æ§Ç¡A·Q¨ì¨Ï¥ÎSmall¨ç¼Æ±Æ§Ç¡A¸Ô¤U¹Ï¬õ®Ø¡G
|
|
|
|
|
|
|
- ©«¤l
- 79
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 148
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- EXCEL 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-5-21
- ³Ì«áµn¿ý
- 2023-3-13
|
©ÎªÌ¥Î¿ý¨î¥¨¶°ªº¥\¯à ¤]¦æ |
|
|
|
|
|
|
- ©«¤l
- 163
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 170
- ÂI¦W
- 0
- §@·~¨t²Î
- Window 7
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-9-5
- ³Ì«áµn¿ý
- 2022-7-20
|
¦^´_ 1# kim223824
©³¤U¸Û¦p3¼Ó adrian_9832 ©Ò»¡ªº¬O¥Î¿ý»sªº¤è¦¡¨ú±o¡G
Sub test()
Columns("A").Copy [B1]
er = [A65536].End(3).Row
With Range("B1:B" & er)
.RemoveDuplicates Columns:=1, Header:=xlNo
.Sort key1:=[B1], Order1:=1
End With
End Sub |
|
|
|
|
|
|
- ©«¤l
- 75
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 109
- ÂI¦W
- 0
- §@·~¨t²Î
- windows XP
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2015-4-19
- ³Ì«áµn¿ý
- 2024-8-10
|
·PÁ¦U¦ì¤j¤j:
´£¨Ñªº¤èªk¡Aµ²ªG¤@¼Ë¡A§Ú¥»¨Ó·Q¥Î¦r¨åªº»yªk¡A¨Ó§¹¦¨³o¼Ëµ{¦¡¡C |
|
|
|
|
|
|