求助:如何设置小数点?
<P>VBA如何设置小数点?</P><P> txtStr = ExcelSheet.cells(1, 1).Value<BR> objText = ThisDrawing.ModelSpace.AddText(txtStr, pt, height)</P>
<P>10.00小数点后的0不见了,如何解决?</P> 要不txtStr = cstr(ExcelSheet.cells(1, 1).Value)试试? <P>用txtStr = cstr(ExcelSheet.cells(1, 1).Value)</P>
<P>还是一样。</P>
<P> </P> <DIV>txtStr =str(format( ExcelSheet.cells(1, 1).Value,"######.##"))<BR> objText = ThisDrawing.ModelSpace.AddText(txtStr, pt, height)</DIV>
<DIV>试试</DIV> <P>感谢二位仁兄!</P>
<P>txtStr =format( ExcelSheet.cells(1, 1).Value,"0.00"))</P>
<P>可用。</P>
页:
[1]