我有一个过滤工作表的子。 为了过滤多列,我将为要过滤的每一列调用sub。 我将sub放在Chart.OnAction中,因为我希望每次双击图表时触发sub:
如何在Chart.OnAction中提供多个子调用?
带有(1)个子调用的当前.OnAction代码:
cht.OnAction = "'FilterOnDoubleClick """ & cht.Chart.ChartTitle.Text & """, 12, ""A5:N5"", ""Sheet 1"", False'"
子:
FilterOnDoubleClick(value As String, fieldIndex As Integer, hdrRange As String, sheetName As String, Optional clearFilters As Boolean = True)