Dim s As String
'请在这里设置代码从数据表中获得目录树字符串,并赋值给变量s
Dim tb As New DropTreeBuilder
tb.TreeString ="Name 数码产品 Text 数码产品InnerName 电脑 Text 电脑InnerName 笔记本 Text 笔记本Name 服务器 Text 服务器Name 台式机 Text 台式机InnerName 巨型台式机 Text 巨型台式机Name 中型台式机 Text 中型台式机Name 小型台式机 Text 小型台式机OuterOuterName 电脑配件 Text 电脑配件InnerName 机箱 Text 机箱Name 主板 Text 主板OuterName 相机 Text 相机InnerName DC Text DCName DV Text DVOuterOuterName 家电产品 Text 家电产品InnerName 电视机 Text 电视机InnerName CRT电视 Text CRT电视Name 液晶电视 Text 液晶电视OuterOuter"
tb.ReceiveCols = "第一列|第二列|第三列|第四列" '指定数据接收列
Tables("表A").Cols("第三列").DropTree = tb.Build()