查看单个帖子
旧 2009-04-12, 09:39 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)