excel - vba: change event code for dropdown missing -
i have dropdown box in excel sheet. @ point vba assigned event code dropdown, deleted.
now can not use drop down, because @ each value change complains not being able execute deleted code.
if want see code assigen throws error "invalid reference".
how can delete event code?
edit whole error disappears if add requested function
public sub dropdown4_beiÄnderung() ' must exist end sub
but want able delete it.
if know name
of combobox shape, in vba:
sub dropdown4nomacro() dim shpname string shpname = "drop down 4" '## modify needed.' activesheet.shapes(shpname).onaction = vbnullstring end sub
edit without vba:
you should able right-click on control, , choose assign macro
, see presently dropdown4_beiÄnderung
(or thisworkbookname!dropdown4_beiÄnderung
).
just delete field empty, , press ok
. see screenshot, highlighted field should empty before press ok
.
original answer (assumed connected worksheet_change
event.
try pressing alt+f11 bring visual basic editor. on left side should see list of objects
including workbook , several worksheets. right click on appropriate worksheet view code within worksheet.
then, delete code associated worksheet_change
event -- or, post code here can tell whether there portions might want keep, while removing only portions impacting dropdown control.