Hey people I need assistance with this code it returns an error "else without for vba" can anyone assist me with it please.
Code:
Private Sub cmdAdd_Click()
Dim cell As Object
For Each cell In Selection.Cells
cell.Value = Cmb
Next cell
Unload Me
If cell.Value = "0" Then
cell.EntireRow.Hidden = True
Application.ScreenUpdating = True
End If
Next
End Sub
Last edited by a moderator: