excel - combobox1.value does not read Numbers -
excel - combobox1.value does not read Numbers -
i have script works when info text, not work when number.
please help
private sub combobox1_change() dim irow long irow = 1 20 if userform1.combobox1.value = thisworkbook.sheets("article").cells(irow, 1).value userform1.label3.caption = thisworkbook.sheets("article").cells(irow, 2).value userform1.label4.caption = thisworkbook.sheets("article").cells(irow, 4).value end if if userform1.combobox1.value = thisworkbook.sheets("crc's").cells(irow, 1).value userform1.label6.caption = thisworkbook.sheets("crc's").cells(irow, 3).value end if next end sub
userform1.combobox1.value coming sheet did properties alter in row source.
if info on sheet(article) cell a1 text works fine. not work numbers.
can please help. using office 2010 @ work. (let me know add together in issue)
thank you
.caption = directcast(thisworkbook.sheets("article").cells(irow, 2).value, string)
or
.caption = cstr(thisworkbook.sheets("article").cells(irow, 2).value)
excel vba combobox userform
Comments
Post a Comment