Hi,
I'm struggling with the following issues. I've got a table in word and depending if the whole row is empty or not, I'm trying to delete the empty rows.
I use the following VBA code but it doesn't work. Here I mean that no matter if the rows is empty or not, Excel will delete the given row. Here's the code I'm using:
i = report.Tables(1).Rows.Count
For n = i To 2 Step -1
If IsEmpty(report.Tables(1).Rows(i)) = False Then
report.Tables(1).Rows(i).Delete
i = i - 1
End If
Next
Does anyone has ever come across that issue?
I'm struggling with the following issues. I've got a table in word and depending if the whole row is empty or not, I'm trying to delete the empty rows.
I use the following VBA code but it doesn't work. Here I mean that no matter if the rows is empty or not, Excel will delete the given row. Here's the code I'm using:
i = report.Tables(1).Rows.Count
For n = i To 2 Step -1
If IsEmpty(report.Tables(1).Rows(i)) = False Then
report.Tables(1).Rows(i).Delete
i = i - 1
End If
Next
Does anyone has ever come across that issue?