Excel filled data donot clear when sheet is activated -


i have filled combo boxes sheet1 depending 1 values in sheet2

i have wrote vba code such data filled on 1 combo boxes , selection of first combo other combi filled.

at first when select sheet1 , selected values in combo 1 , accordingly 2 , 3.

but when select sheet 2 , come again sheet 1 selected values reset. want preserve selected values.

i have code in sheet activate

selectedclient = sheets("2. tss").range("c17").value 

dim col new collection dim itm dim long dim cellval variant

totalrows = sheets("3. bc").usedrange.rows.count = 5 totalrows     cellval = sheets("3. bc").range("j" & i).value     on error resume next     col.add cellval, chr(34) & cellval & chr(34)     on error goto 0 next sheets(2).oleobjects("combobox1").object      .clear     each itm in col      .additem itm         'debug.print itm     next end 

thanks,

binaya acharya


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -