I'm hoping this is the right sub-forum to post this question, my apologies if it's not.
The problem I'm having is that I can't get a blank row to be deleted. Below is a section of code where the Selection.Entir eRow.Delete should occur.
'-- Loop through to make sure only MS Patches are there. Delete Empty rows
For row = 2 To allRows
allString = xlSReport.Cells (row,2)
If (allString = "") Then
allString.Entir eRow.Delete
End If
'Do Nothing
Next
xlSReport.colum ns(1).Autofit()
xlSReport.colum ns(2).Autofit()
xlSReport.colum ns(4).Autofit()
xlSReport.colum ns(5).Autofit()
The problem I'm having is that I can't get a blank row to be deleted. Below is a section of code where the Selection.Entir eRow.Delete should occur.
'-- Loop through to make sure only MS Patches are there. Delete Empty rows
For row = 2 To allRows
allString = xlSReport.Cells (row,2)
If (allString = "") Then
allString.Entir eRow.Delete
End If
'Do Nothing
Next
xlSReport.colum ns(1).Autofit()
xlSReport.colum ns(2).Autofit()
xlSReport.colum ns(4).Autofit()
xlSReport.colum ns(5).Autofit()
Comment