I am trying to declare a variable that is the text in a cell in a hidden column on the spreadsheet. This work if I move the cell to a column that is not hidden, but not when the column is hidden. Any ideas?
The value in J3 is the result of the following formula: =Table1[[#Totals],[highlight?]]>1 and results in TRUE or FALSE depending on the results of the formula.
Sub checkErrors()
Dim Errors As String
Range("J3").Select
Errors = Range("J3").Text
If Errors = "TRUE" Then
MsgBox ("Please resolve all errors in red before closing month.")
Exit Sub
End If
End Sub
The value in J3 is the result of the following formula: =Table1[[#Totals],[highlight?]]>1 and results in TRUE or FALSE depending on the results of the formula.
Sub checkErrors()
Dim Errors As String
Range("J3").Select
Errors = Range("J3").Text
If Errors = "TRUE" Then
MsgBox ("Please resolve all errors in red before closing month.")
Exit Sub
End If
End Sub