Hi,
I'm trying to do a function who delete all the row of a range I pass is
argument and will copy them to an other sheet. Here is my function :
Function RangeToDelete(ToBeDelete As Range, SheetsNameCopy As String)
If WorksheetFunction.CountBlank(ToBeDelete) = 0 Then
Selection.EntireRow.Copy
Sheets(SheetsNameCopy).Paste
Selection.EntireRow.Delete
End If
End Function
I want to check if the range is empty first so I don't have an error
cause I can't delete something that is empty. But this function doesn't
work since the CountBlank is not working. I have an error telling me
that it's not available.
Can you help me on this?!
Thanks
Bookmarks