作者:瘦哆哆和胖大雄 | 来源:互联网 | 2023-05-19 01:45
IcurrentlywouldusesomethinglikethiseitherwithRange,Cellsorthelikemanydifferentwayss
I currently would use something like this either with Range, Cells or the like many different ways same basic principle.
我现在会用类似这样的东西来处理范围,单元格或者其他类似的方法同样的基本原理。
Range("A1", Range("A1").End(xlDown)).AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=Range("IV1"), Unique:=True
Dim myArr as Variant
myArr = Range("IV1", Range("IV1").End(xlDown))
Columns("IV").Delete
Is there a way to directly load those unique values into any type of object in VBA without the need to copy to another location?
有没有一种方法可以直接将这些唯一值加载到VBA中的任何类型的对象中,而不需要复制到另一个位置?
1 个解决方案