I've pasted this code to copy cells from one work sheet to another, then remove the pasted rows if they're blank. It works very strange...that is, sometimes it doesn't and returns this error.
Run-Time Error 1004 Cannot Use That Command on Overlapping Sections
The strange part is, sometimes it works and sometimes it doesn't. The complete code is (with the bold section where the error occurs).
With Sheets("Daily Meals Report")
.Range("B3:G259").Value = Sheets("Joural CalcSheet").Range("A2:F259").Value
With .Range("B3:G259")
.Replace What:="0", Replacement:="", LookAt:=xlWhole
.SpecialCells(xlBlanks).EntireRow.Delete
End With
End With
This ones got me very confused...any help out there.
Thanks in advance
Run-Time Error 1004 Cannot Use That Command on Overlapping Sections
The strange part is, sometimes it works and sometimes it doesn't. The complete code is (with the bold section where the error occurs).
With Sheets("Daily Meals Report")
.Range("B3:G259").Value = Sheets("Joural CalcSheet").Range("A2:F259").Value
With .Range("B3:G259")
.Replace What:="0", Replacement:="", LookAt:=xlWhole
.SpecialCells(xlBlanks).EntireRow.Delete
End With
End With
This ones got me very confused...any help out there.
Thanks in advance