Sub Post_It()
Dim cel As Range
Dim NR As Long
Dim strType As String
For Each cel In Range("B3:F3")
If cel.Value = "" Then
MsgBox "Missing Data ", vbExclamation, "Invalid Entry"
Range(cel.Address).Activate
Application.EnableEvents = False
Range("C4").Value = ""
Application.EnableEvents = True
Exit Sub
End If
Next cel
strType = Range("C4").Value
With Range(strType).Resize(, 1)
NR = Application.CountA(.Cells) + 1
If NR > .Rows.Count Then
MsgBox "The '" & strType & "' range is full. ", , "Copy Canceled"
Else
.Cells(NR).Resize(, 5).Value = Range("B3:F3").Value
.Cells.EntireRow.Hidden = True
.Cells.Resize(NR).EntireRow.Hidden = False
End If
End With
End Sub
Bookmarks