سلام بچه ها لطفا یکی بگه چطور میتونم آخرین رکورد لیست باکسمو بدست بیارم
و 2 اینکه مقادیر تکراری در لیت باکسمو حذف کنم
ممنونم از تمامی شما
و 2 اینکه مقادیر تکراری در لیت باکسمو حذف کنم
ممنونم از تمامی شما

Dim myCollection As New Collection Dim oneCell As Range Dim oneString As Variant For Each oneCell In Range(Range("A1"), Range("A65536").End(xlUp)) On Error Resume Next For Each oneString In Split(CStr(oneCell.Value), ",") myCollection.Add Item:=oneString, Key:=oneString Next oneString On Error GoTo 0 Next oneCell With UserForm1.ListBox1 For Each oneString In myCollection .AddItem oneString Next oneString End With
MsgBox Me.ListBox1.List(ListBox1.ListCount - 1, 0)
range ("A1:D"&lastrow)
range ("A1:D"&lastrow)
کامنت