各位大神好,請教EXCEL VBA是否可以呼叫userform,情境如下,EXCEL A欄位記載combobox顯示項目,B欄位為對應userform的名稱,希望在combobox選擇項目的時候開啟對應的userform,請大神指導,感激
Private Sub ComboBox2_Change()
Classification = ComboBox2.Value
colNameEnd = Sheets("主畫面").Columns(1).Find(Classification, LookIn:=xlValues, SearchDirection:=xlPrevious).Row '確認行數
a = Cells(colNameEnd, "B").Value
a.Show vbModeless
End Sub