CODE
Option Explicit
Dim DiffCount As Long
'Calcuate the DiffCount Variable
DiffCount = .Sum(Range(B1:IV1))
'Dispay Message Box with Confirmation Message
MsgBox DiffCount & " cells contain different formulas!", vbInformation, _
"Comparing Cell Values In " & ws1.Name & " With Those In " & ws2.Name
End Sub
Dim DiffCount As Long
'Calcuate the DiffCount Variable
DiffCount = .Sum(Range(B1:IV1))
'Dispay Message Box with Confirmation Message
MsgBox DiffCount & " cells contain different formulas!", vbInformation, _
"Comparing Cell Values In " & ws1.Name & " With Those In " & ws2.Name
End Sub
This is the line that won't work:
CODE
DiffCount = .Sum(Range(B1:IV1))
How can I tell VB to add row one (not including Cell A1 because that is a row header) and then use that value as the variable DiffCount to be used in my message box?