Hi Team,
I want to find string "-" charecter in specific Amounts columns. if found Macro should exit.
Below is sample code , which help in finding blank, Similar fashion how to find String charecter "-"
Thanks
mg
I want to find string "-" charecter in specific Amounts columns. if found Macro should exit.
Below is sample code , which help in finding blank, Similar fashion how to find String charecter "-"
VBA Code:
Sub t()
Dim rng As Range
Set rng = Union(Columns(1), Columns(3), Columns(5), Columns(6), Columns(9), Columns(10), Columns(14), Columns(16))
Application.DisplayAlerts = False
On Error GoTo Skip:
If Intersect(ActiveSheet.UsedRange, rng).SpecialCells(xlCellTypeBlanks).Count > 0 Then
Beep
MsgBox "Blanks"
End If
Skip:
Err.Clear
Application.DisplayAlerts = True
End Sub
Thanks
mg