Tech Support Guy banner

Excel 2016 Error "1004"

1324 Views 1 Reply 2 Participants Last post by  Rollin_Again
I'm receiving the following error when trying to run a recorded macro:
"Run-time error '1004': Cannot use that command on overlapping selections."


It was successful when I recorded it, but when I tried to run it on a new sheet, I received the error. My code:

Sub Sub_and_delete_blanks()
Sheets("Innovation Mapping Project - Re").Range("A1:MX29").AdvancedFilter _
Action:=xlFilterCopy, CriteriaRange:=Range("A1:A2"), CopyToRange:=Range( _
"A5"), Unique:=False
Rows("5:7").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireColumn.Delete
End Sub
Status
Not open for further replies.
1 - 2 of 2 Posts
Which line is highlighted it you click Debug after receiving the error?
1 - 2 of 2 Posts
Status
Not open for further replies.
Top