Displaying a constantly changing variable in a text box in excel vba -
i want create text box in excel vba display value of changing variable till final value reached. here code wrote
**for i= 0 cwpres_max step 0.1 cw_pressure.value = (cw_pressure name of text box) application.wait + timevalue("00:00:01") next**
i want variable count value cwpres_max in steps of 0.1 , @ each step value displayed in text box (cw_pressure). while running, program executing entire delay , displaying final value of 'i', cwpres_max in text box.
how go it?
google doevents
i= 0 cwpres_max step 0.1 doevents cw_pressure.value = (cw_pressure name of text box) application.wait + timevalue("00:00:01") next
Comments
Post a Comment