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.

screenshot of assign macro dialog

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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -