D
Darrin
I have a 29000 row dataset. Unfortunately, some of the data imported 'text
wrapped' into the cell a row down, the rest of the row has blank cells. I am
trying to modify a macro to take the text from the cell below and concatenate
the text in that cell to the cell immediately above, and then delete the
empty row.
Looks like below.
945 S Tube Dr. 9 Ft E and 10 Ft S of Drive
in Cir
1000 E Ninemile Rd 15 W of mailbox
I need to get the 'in Cir' text from the cell its in to the end of the text
above it and then delete the empty row.
What do I need to add to the code below to complete what I am attempting to
do.
Sub DeleteBlankRows1()
'Deletes the entire row within the selection if the ENTIRE row contains no
data.
'We use Long in case they have over 32,767 rows selected.
Dim b As Integer
Dim i As Long
'We turn off calculation and screenupdating to speed up the macro.
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
b = 0
'We work backwards because we are deleting rows.
For i = Selection.Rows.Count To 1 Step -1
If WorksheetFunction.CountA(Selection.Rows(i)) = 0 Then
Selection.Rows(i).EntireRow.Delete
End If
Next i
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
Thanks in advance for suggestions and help.
wrapped' into the cell a row down, the rest of the row has blank cells. I am
trying to modify a macro to take the text from the cell below and concatenate
the text in that cell to the cell immediately above, and then delete the
empty row.
Looks like below.
945 S Tube Dr. 9 Ft E and 10 Ft S of Drive
in Cir
1000 E Ninemile Rd 15 W of mailbox
I need to get the 'in Cir' text from the cell its in to the end of the text
above it and then delete the empty row.
What do I need to add to the code below to complete what I am attempting to
do.
Sub DeleteBlankRows1()
'Deletes the entire row within the selection if the ENTIRE row contains no
data.
'We use Long in case they have over 32,767 rows selected.
Dim b As Integer
Dim i As Long
'We turn off calculation and screenupdating to speed up the macro.
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
b = 0
'We work backwards because we are deleting rows.
For i = Selection.Rows.Count To 1 Step -1
If WorksheetFunction.CountA(Selection.Rows(i)) = 0 Then
Selection.Rows(i).EntireRow.Delete
End If
Next i
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
Thanks in advance for suggestions and help.