Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90189

Type mismatch when checking the value of a cell

$
0
0

I have this code hitting

error 13 :Type Mismatch

whenever I enter or change the value in C59, C59 contains this formula =ROUNDUP(D59/C57,0). I am guessing its because of the different variable but do not know how to solve it, any kind assistance is greatly appreciated!

If Range("C59").Value = "0" Then
        Sheets("InvPL").Rows("78:79").EntireRow.Hidden = True
        Else
        Sheets("InvPL").Rows("78:79").EntireRow.Hidden = False
End If

Viewing all articles
Browse latest Browse all 90189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>