Move Data from one sheet to another sheet

smartguy

Well-known Member
Joined
Jul 14, 2009
Messages
778
Hello all,

Good day.

I have excel sheet in the below format.


Excel 2013/2016
ABC
1Asset tagCIIM Asset IDStatus
2E2902202118195Yes
3E2900852118571Yes
4E2913082119523Yes
5E4190242127131No
6E4524042128911Yes
Sheet1
Cell Formulas
RangeFormula
A2=T("E290220")
A3=T("E290085")
A4=T("E291308")
A5=T("E419024")
A6=T("E452404")
B2=T("2118195")
B3=T("2118571")
B4=T("2119523")
B5=T("2127131")
B6=T("2128911")


If status is "No" I need to remove and move the data in to sheet 2.

Answer :

Excel 2013/2016
ABC
1Asset tagCIIM Asset IDStatus
2E4190242127131No
Sheet2
Cell Formulas
RangeFormula
A2=T("E419024")
B2=T("2127131")


Please help me to provide VBA Code.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Code:
Sub smartguy()
   With Sheets("Sheet1")
      If .AutoFilterMode Then .AutoFilterMode = False
      .Range("A1:C1").AutoFilter 3, "No"
      With .AutoFilter.Range.Offset(1).EntireRow
         .Copy Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1)
         .Delete
      End With
      .AutoFilterMode = False
   End With
End Sub
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

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