Public Sub 技巧()#判断单元格是否有公式 Dim myRange As Range Set myRange = Range("A1") '指定任意单元格 If myRange.HasFormula = True Then MsgBox "单元格 " & myRange.Address & " 内有计算公式。" Else MsgBox "没有输入计算公式。" End If Set myRange = Nothing End Sub
标签:VBA,End,技巧,单元格,Range,myRange,Sub From: https://www.cnblogs.com/xkdn/p/16925831.html