wb.AddForm("","form1","tongjifl.htm") With wb.AddInputGroup("form1","ipg2","分类统计选项") .AddSwitch("fltj","按品牌和类型",True).attribute = "onchange=""form1.submit();""" End With