hoe to move data between excel sheets

imported_unknown

Active Member
Joined
Jan 13, 2002
Messages
424
Hi all,
well i have tried but i am stuck in this, well i want to manage some data in Excel, the problem is the sequence no, and the reference no in my file are to be aranged and then sorted after that i want to cut the alike sequence no. with the related contents in the row and past to other sheet. what i have been able to come up is

Sub MyProject()
' Sort table according to col A and B
Selection.sort _
Key1:=Range("A1"), Order1:=xlAscending, _
Key2:=Range("B1"), Order2:=xlAscending, _
Header:=xlGuess, _
OrderCustom:=1, _
MatchCase:=False, _
Orientation:=xlTopToBottom

' Compare values
Sheets("Sheet1").Select

Error on this line
ActiveCell.formulaRC1 = "=IF(RC[-2]=R[1]C[-2]) then Rows(r:r).Select"

Selection.Cut
Sheets("Sheet2").Select
ActiveSheet.Paste
Sheets("Sheet1").Select
Selection.Delete Shift:=xlUp
Selection.AutoFill Destination:=Range("a1:a50"), Type:=xlFillDefault
End Sub

can you please help me out on this one. really thankful
Sohail
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,222,900
Messages
6,168,926
Members
452,227
Latest member
sam1121

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