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