Button to copy from - to ?

Tartesos

Board Regular
Joined
Feb 3, 2011
Messages
109
I was wondering if there is a way to add a button on a sheet that will do the action of copying a number of columns and rows determintade by me.
Is this possible?
How?


Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
It's definitely possible. Write the code, insert a shape, right click on the shape, go to "Assign Macro", and click on the sub you wrote.

Does that answer your question?
 
Upvote 0
Well, I can do all that I just need the Code ... there is a databases where I can find standart codes for this actions ??

Thanks
 
Upvote 0
Have you recorded a macro? You can do that to get a basic idea of the code and then alter it for your button.

Click on record a macro, do your actions, click stop recording then go into the editor to look at the code.

If you have difficulty adjusting the code, post what you have here with a description of how you want to change it.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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