• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

I need assitance with this code.

Moroke

New Member
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:
Back
Top