如何用vba获取excel单元格格式

2025-02-25 19:36:54
推荐回答(1个)
回答1:

给你个例子一看就懂了。

Sub noky()
If Range("a1").NumberFormatLocal <> "@" Then
MsgBox "不是文本格式!"
End If
End Sub

不用我多解释吧?
还不明白给我发消息