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

[µo°Ý] ¬O§_¥i¥H²¤Æ¿ý»s«áªºVBA »yªk

¦^´_ 2# singo1232001
Dear singo1232001,
±z¦n¡I·PÁ±zªº¼ö¤ß¦^´_¡C
»yªk¥i¥H¨Ï¥Î¡A¦ý°õ¦æ¹Lµ{¤¤³t«×«ÜºC¡A¥t¥~¥u­n§R°£¤@Äæ¦ì¤º¸ê®Æ¡AVBA¤]·|¶]
ÁÂÁ¼Ú
Just do it.

TOP

¦^´_ 1# jsc0518

¥Î¦r¨åªº¼gªk¡A½Ð¸Õ¬Ý¬Ý¡AÁÂÁ¡C

Sub test()
Dim Arr, xD, i&
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range("D1:D" & [d65536].End(3).Row)
For i = 1 To UBound(Arr): xD(Arr(i, 1) & "") = "": Next
Range("P1").Resize(xD.Count) = Application.Transpose(xD.keys)
End Sub

TOP

¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-6-28 00:31 ½s¿è

¦^´_ 1# jsc0518

Sub RepeatA()
Columns("U") = Columns("D").Value
Range("U1:U20000").RemoveDuplicates Columns:=1, Header:=xlYes
Columns("P") = Columns("U").Value
Columns("U").ClearContents
End Sub

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD