以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  动态设置打印条件  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=115267)

--  作者:有点甜
--  发布时间:2018/3/4 13:45:00
--  

如果指的是逻辑列勾选:

 

Sheet(3,9).Value = "<逻辑列 = true>"  \'写入打印条件

 

如果是指表格最左边的复选框的勾选:

 

Dim str As String = "-1,"
For Each r As Row In Tables("表A").GetCheckedRows
    str &= r("_Identify") & ","
Next
Sheet(3,9).Value = "<_Identify in (" & str.trim(",") & ")>"