excel vba - Update data validation using VBA when cell is selected? -
excel vba - Update data validation using VBA when cell is selected? -
i have vba-code updates info validation list in cell.
sub setdatavalidationlist(r range, s string) dim dv validation set dv = r.validation dv .delete .add type:=xlvalidatelist, alertstyle:=xlvalidalertstop, operator:=xlbetween, formula1:=s end end sub
i want info validation list date whenever cell selected. know can run subroutine above in worksheet_change event. there event cell_select? or way can emulate event this.
vba excel-vba
Comments
Post a Comment