Fill in the blanks...

omnivl

Board Regular
Joined
Aug 25, 2014
Messages
53
How in VBA can i fill in the blank rows and fill them...it needs to find the name after the blank and copy both fields to the above cells. Appreciate any help :)

So from this.....

V00006
Action Office Machines P/L
V03393Active Sound Services
V03271Adaptalift Group Pty Ltd
V02472Adventure Junkie - AJ Events Pty Ltd
V00595Air Liquide Australia Limited
V01683Ali Baxter - Soulstice
V03243
Alison Green Designs
V02972A-List Entertainment

<tbody>
</tbody>


to this....

V00006Action Office Machines P/L
V03393Active Sound Services
V03271Adaptalift Group Pty Ltd
V02472Adventure Junkie - AJ Events Pty Ltd
V02472Adventure Junkie - AJ Events Pty Ltd
V00595Air Liquide Australia Limited
V00595Air Liquide Australia Limited
V00595Air Liquide Australia Limited
V00595Air Liquide Australia Limited
V00595Air Liquide Australia Limited
V01683Ali Baxter - Soulstice
V03243Alison Green Designs
V02972A-List Entertainment

<tbody>
</tbody>
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Give this macro a try...
Code:
Sub FillBlanksFromBelow()
  Dim LastRow As Long
  LastRow = Cells(Rows.Count, "B").End(xlUp).Row
  With Range("A1:B" & LastRow)
    .SpecialCells(xlBlanks).FormulaR1C1 = "=R[1]C"
    .Value = .Value
  End With
End Sub
 
Upvote 0
Give this macro a try...
Code:
Sub FillBlanksFromBelow()
  Dim LastRow As Long
  LastRow = Cells(Rows.Count, "B").End(xlUp).Row
  With Range("A1:B" & LastRow)
    .SpecialCells(xlBlanks).FormulaR1C1 = "=R[1]C"
    .Value = .Value
  End With
End Sub

You sir are a Genius!
 
Upvote 0

Forum statistics

Threads
1,216,128
Messages
6,129,036
Members
449,482
Latest member
al mugheen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top