
As Destination is first (and only) parameter in Range.Copy method name of the parameter can be skipped, so
Sheets("ws1").Range("C4:C10").Copy Destination:=Rng.Offset(1, 0)
is exactly the same as:
Sheets("ws1").Range("C4:C10").Copy Rng.Offset(1, 0)
see how you use MsgBox - for instance you wrote:
extended version would be:
MsgBox Prompt:="Nothing found"
---------------
Glad it worked, and also from code tags usage in post #3. What I asked before (and ask again) is to push "Edit Post" button below your first post and use code tags also there.
PS. As you have action for both "found" and "not found" have a look on soch "inversion" in the code:
If Rng Is Nothing Then
MsgBox "Nothing found", vbExclamation
Else
Sheets("ws1").Range("C4:C10").Copy Rng.Offset(1, 0)
End If
I added also second (optional) parameter to MsgBox to emphasize that it is a warning message
Bookmarks