Copy entire row

Johnboy

Board Regular
Joined
Oct 25, 2004
Messages
144
Hi All,

I trying to create a macro to copy entire row at cursor loaction. If cursor is in cell B12 then copy row 12 to another sheet.

Thanks
Johnboy
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

nbrcrunch

Well-known Member
Joined
Jan 1, 2003
Messages
2,062
you'd spend more time creating and using such a routine than just copying it.

step 1: Shift and Spacebar
Step 2: Ctrl-C

Even faster, right-click on row number, choose copy.
 
Upvote 0

nbrcrunch

Well-known Member
Joined
Jan 1, 2003
Messages
2,062
Johnboy,

I've posted things in the past that others have kindly reminded me I could have figured out much quicker if i had just turned on the macro recorder and done the step and then examine the code. This is one of those times. ;)
 
Upvote 0

Forum statistics

Threads
1,191,178
Messages
5,985,144
Members
439,942
Latest member
bkexcel11230

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
Top