Could you help to create macro on excel? (Copy&Paste loop with A conditon)

tom8254

New Member
Joined
Sep 16, 2015
Messages
9
I'm trying to make a macro.....but....I don't have no idea.

Could you help?

I wanna make like that.

Step1. copy just one cell (B14)
Step2. paste the coied cell to A15
Step3. again B15(copy)
Step4. A16(Paste)
Step5. again B16(copy)
Step6. A17(Paste)

Loop~

but if 'Project Total' value in the cell the cell copies excluding.

Could you help me to make the mecro?

Thank you
YB.Shin
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I do not understand this:
but if 'Project Total' value in the cell the cell copies excluding.
 
Upvote 0
Try this:
Code:
Sub Copy_Paste()
'http://www.mrexcel.com/forum/excel-questions/887016-could-you-help-create-macro-excel-copy-paste-loop-conditon.html
Application.ScreenUpdating = False
Dim i As Integer
    For i = 15 To 17
        Cells(i, 1).Value = Cells(i - 1, 2).Value
    Next
Application.ScreenUpdating = True
End Sub
'Copy paste not needed

'No loop example
'Cells(15, 1).Value = Cells(14, 2).Value
'Cells(16, 1).Value = Cells(15, 2).Value
'Cells(17, 1).Value = Cells(16, 2).Value
 
Upvote 0
macro1.png


this is what I want result
macro2.png

I do not understand this:
but if 'Project Total' value in the cell the cell copies excluding.
 
Upvote 0
Yeah It works but I don't want the cell(value="Project Total") to copy.
What should I add in the script?? With ~ end with?

Please help me
you are saving my life ^^
 
Upvote 0
Sorry I forgot it to type '....' first my quetion it missed '.....' . end of the cell is dynamic. Every time changed.

But the form everytime is same.

I want to getthe result like the screenshot.
Copy , paste and it doesn't want to copy that value="Project Total"

If I make you confused Im so sorry.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,967
Messages
6,175,673
Members
452,666
Latest member
AllexDee

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