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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -