Sub Changecellformat()
If Selection.NumberFormat = "General" Then
Selection.NumberFormatLocal = "@"
Else
If Selection.NumberFormat = "0.00" Then
Selection.NumberFormatLocal = "@"
Else
Selection.NumberFormatLocal = "0.00"
End If
End If
End Sub 作者: 老鬼 时间: 2006-9-1 07:43
这个程序是为了题目中的功能而写的,如果不循环遍历,那个功能就没用啦作者: 老鬼 时间: 2006-9-1 08:15
还有需要提醒一下,你确定你的代码能将数字转为真正的文本吗?你试一下,被转换后的数字一定还能计算,那不是文本。作者: 方漠 时间: 2006-9-1 18:25
呵,公式确实还能引用计算,不过双击两次公式过后看看发生了什么改变?