我在Excel中有Combo box,我有以下VBA代码。但现在可以在打开excel时工作。
Sub worksheet_activate()
mapping.clear
mapping.Additem "File to Table"
mapping.Additem "Table to File"
End Sub现在,告诉我如何在打开excel时自动加载组合框。
发布于 2012-06-16 17:24:51
当我这样做的时候,它起作用了。在工作表宏中执行此操作。
Private Sub Workbook_Open()
With Sheet1.mapping
.AddItem "File to Table"
.AddItem "Table to File"
End With
End Subhttps://stackoverflow.com/questions/11048250
复制相似问题