以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  excel报表,怎么统计个数,重复的不算  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=89051)

--  作者:狐狸爸爸
--  发布时间:2016/8/15 8:14:00
--  

用GetValues,可以得到任何一列所有的不重复值。

 

Dim Products As List(Of String)
Products = DataTables("产品").GetValues("产品名称")

messagebox.show(Products.Count)