Cut/Paste Same Sheet Always Running Macro

That1Guy1

New Member
Joined
Nov 11, 2016
Messages
2
Hey Everyone,

Any help is greatly appreciated. Every post I see for this is cut and paste into a different sheet instead of same sheet.

What I am looking for would be:

A marco that is always running, that when the word "Confirmed" is placed into a cell in Column E, that it will cut that row (Specifically the data from in that row from column A-I) and paste it (on the same sheet) starting at A3 (or next available row that does not have data). The Sheet is called HotList 2016. Any help is greatly appreciated, I've tried several modifications to codes that cut and paste into a different worksheet and can not get it to work!

Thank you for your help!

All the best,
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

Here is example data that I used. See if the code below helps get you started.

Excel 2010
ABCDE
11
22
33
44
5
6
7
8
9
105Confirmed
116
127
138Confirmed
149
Sheet2


Code:
Sub Confirmed()
lastrowE = Cells(Rows.Count, 5).End(xlUp).Row
For i = 1 To lastrowE
  lastrowA = Range("A1").End(xlDown).Row + 1
  If Cells(i, 5).Value = "Confirmed" Then
    Rows(i).EntireRow.Cut
    Range("A" & lastrowA).EntireRow.Select
    Selection.Insert Shift:=xlDown
  End If
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,589
Members
449,174
Latest member
chandan4057

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