Function ISFORMULA(ByVal rg As Object) As Variant
      Dim temp As Variant
      Dim i As Integer, j As Integer
      temp = rg.Formula
     
      If IsArray(temp) Then
         For i = 1 To UBound(temp, 1)
            For j = 1 To UBound(temp, 2)
               temp(i, j) = IIf(InStr(temp(i, j), "=") > 0, True, False)
            Next j
         Next i
      Else
         temp = IIf(InStr(temp, "=") > 0, True, False)
      End If
      ISFORMULA = temp
End Function

posted on 2015-09-06 11:11  lbnnbs  阅读(668)  评论(0编辑  收藏  举报