Using TopLeft of a button to reference a range of cells and CopyPaste them to a new worksheet

gussio

New Member
Joined
Mar 4, 2016
Messages
2
Hi. I have a table that will continually expand as new rows are added (thanks to a preceding macro).
Each row has a range of cells with data and formula in them ($B17:$K17), but I I want to have a button (or double-click cell) in $L17 that calls a follow on macro.

When I click that button I want to copy and paste an existing worksheet (called 'copythissheet') but have the cells that are immediately to the left of the button (i.e. $B17:$K17) copied and transposed into the Range ($B2:B11) on the new versions of the copied worksheet.

I would paste some code but it's pretty messy and I think it'd be better to start afresh.

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,699
Messages
5,833,201
Members
430,196
Latest member
rez5656

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