Macro for copying 3 columns from one worksheet to another worksheet?

kishengiggs1

New Member
Joined
Jun 21, 2011
Messages
23
I need some help creating macro for copying 3 columns from sheet1 (workbook1) to workbook2 and 3 columns from sheet2 (workbook1) workbook2 and it should paste from where the data from sheet1 (workbook1) ended and i will have to do this from 3 more different sheets from workbook1.

I will be doing this everyday so i want to make sure it the pasting gets done from where the previous copied data ended last.

Any help would be appreciated.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
As i said earlier, it works perfectly. There is one small problem though. My macro is stored in Book4.xlsm but if i run the macro from Book4 it does not work.

If i run the macro from any other workbook it works.

Let me know if you can fix this problem, otherwise its ok.
 
Upvote 0
As i said earlier, it works perfectly. There is one small problem though. My macro is stored in Book4.xlsm but if i run the macro from Book4 it does not work.

If i run the macro from any other workbook it works.

Let me know if you can fix this problem, otherwise its ok.

Only suggestion I can make is that I'm using 2003 and I know you have 2007 or later. So if you review the code you'll see that when referencing Book4 is Book4.xls perhaps if you changed those too Book4.xlsm it would work? Don't know if I could add much more.
 
Upvote 0

Forum statistics

Threads
1,216,523
Messages
6,131,151
Members
449,626
Latest member
Stormythebandit

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