Paste Down Macro....,

rajuctech

New Member
Joined
Jul 27, 2011
Messages
30
Hi guys

Would you please suggest this how to write a macro paste the below blank cell....,(column A, B, C)
A B C
<table border="0" cellpadding="0" cellspacing="0" width="240"><col style="width: 69pt;" width="92"> <col style="width: 38pt;" width="50"> <col style="width: 74pt;" width="98"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; width: 69pt;" width="92" height="20">Product</td> <td class="xl64" style="border-left: medium none; width: 38pt;" width="50">Region</td> <td class="xl64" style="border-left: medium none; width: 74pt;" width="98">New Region</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">Glue Guns</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">East</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Africa</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Asia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Australia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Brazil</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">China</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Latin America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">North America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">North</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Africa</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Asia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Australia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Brazil</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">China</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">India</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Latin America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">North America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">South</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Africa</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Asia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Australia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Brazil</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">China</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">India</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Latin America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">North America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">Light Sabres</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">North</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Africa</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Asia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Australia</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Brazil</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">China</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">India</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Latin America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">North America</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">Transponders</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">South</td> <td class="xl64" style="border-top: medium none; border-left: medium none;">Africa</td> </tr> </tbody></table>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Select the columns with blanks, press F5, click Special, tick Blanks and click OK

Press =

Press Up arrow

Hold down CTRL and press Enter.
 
Upvote 0
If you want a macro:

Code:
Sub Test()
    Dim Cell As Range
    With ActiveSheet.Range("A1").CurrentRegion
        For Each Cell In .SpecialCells(xlCellTypeBlanks).Cells
            With Cell
                .FormulaR1C1 = "=R[-1]C"
                .Value = .Value
            End With
        Next Cell
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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