高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】macro not working properly
macro not working properly
i have made a macro for creating a rectangular box. the form comes up and the user has to input the required height, width & depth. up to this is ok. but when i click apply, a cube gets generated with all dimensions value equaling the height value. can some check what is the mistake in the code/macro.
tia.
deepak gupta
sw2007 sp5.0
sw2009 sp2.1
answer hi,
make these edits.
dblwidth = cdbl(txtwidth.text * 0.0254)
dbldepth = cdbl(txtdepth.text * 0.0254)
scott
thanks scott. i forgot to change the codes after i did the copy and paste of first line.
deepak gupta
sw2007 sp5.0
sw2009 sp2.1
|