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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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