copy vba

alakl

New Member
Joined
Mar 5, 2011
Messages
6
Can someone show me step by step on how to copy vba and run in an excel sheet/ Here is what I know to do so far.
Copy and paste the vba and open an excel book and go to vbva editor and click insert and paste it to the editor sheet. But when I try to run it it wont run, it show the macro tool box with no name, I try to name it but it wont. Thanks in advance
allen
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
can you post the code I'm guessing you have pasted in an event handler code eg it says something like whorksheet change at the top of the page.
 

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
alakl,


Please post your macro code using code tags?


At the beginning of your posted code, enter the following without the * character:
[*code]


'Your code goes here.


At the end of your posted code, enter the following without the * character:
[*/code]
 
Last edited:

Forum statistics

Threads
1,141,019
Messages
5,703,771
Members
421,315
Latest member
awaisnazir139

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