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.SolidworksApi macros
Answers 2
SF
SF 2009-01-20 Best Answer
Hi,
Make these edits.

dblWidth = CDbl(txtWidth.Text * 0.0254)
dblDepth = CDbl(txtDepth.Text * 0.0254)

Scott
DG
DG 2009-01-21
Thanks Scott. I forgot to change the codes after I did thecopy and paste of first line.