any way to one click move

colman

New Member
Joined
May 27, 2011
Messages
19
Hey there might be a simple solution to this, but I was wondering if there was a way to move a row to another sheet in the workbook with just one click (or something similar), so I dont have to spend any time copying and pasting a couple hundred rows.

Any insight would be great!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Can you please elaborate on what exactly you want to do with this "one click"?
 
Upvote 0
I have a sheet of 2000+ rows and only want to use about 500 or so. Instead of dragging or copying each row individually to a new sheet, I was hoping there was a way where I could just click on the row and it would move to where I want (the new sheet). Or it could even just shift it over two columns.
 
Upvote 0
There is, however we might be able to automate this further so you don't even need to manually click each row! :biggrin:

Is there a particular criteria that you are looking for that determines if a row is moved over or not? And what are the names of the sheet with your data, and the name of the sheet you want to move the rows to?
 
Upvote 0
do the rows you require have a distiquishing feature? you could filter on this & then copy filtered results & paste
 
Upvote 0
No unfortunately they don't, the 500+ names I'm pulling are from a physical list in front of me.
 
Upvote 0
Sheet1 with data is "2011 Companys" and Sheet2 where I want the rows moved is "Tech Group"
 
Upvote 0
Understood - and last question. Do you want to copy the rows over and leave the record in the "2011 Companys" sheet? Or do you want to delete the record in the "2011 Companys" sheet after you move it?
 
Upvote 0
Right click on the sheet tab "2011 Companys" and click "View Code". Then Copy/paste the below code into the VBA editor.

Now, in the "2011 Companys" sheet, just double-click on a row and it will move it to the "Tech Group" sheet.

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, cancel As Boolean)
Dim LR  As Long
LR = Sheets("Tech Group").Range("A" & Rows.Count).End(xlUp).Row + 1
Target.EntireRow.Copy Destination:=Sheets("Tech Group").Range("A" & LR)
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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