copy paste to different file with changing name

aaronbauer1980

New Member
Joined
Apr 11, 2016
Messages
1
First I'll let you know what I have and then let you know what I'm trying to accomplish.
I have a file - products.xlsm with a copy row macro that will copy from "XYZ worksheet" and paste to "Quote worksheet"
This is all working fine and no issues.
What I'm trying to accomplish is to be able to use the copy past macro to paste to a "quote worksheet" that exists in different files. These different files would have a different name all the time, never to repeat. Also there could be many of these files open all at the same time.

Is there a way in my products.xlsm workbook to set up my copy/paste row macro to default to whatever file I choose?

for example...I have the following files open.

products.xlsm
jon.xlsm
jane.xlsm
bob.xlsm


All of these files have the same worksheets in them titled "quote"

I want to be able to copy anything in the products.xlsm file and paste to any of the files of my choosing onto the "quote" worksheet. This copy and paste function would happen several hundred times so it would be nice to have something where I don't have to select the file every single time I copy/paste. Be able to set the destination of the copy/paste macro and it be this same destination until I change it.

Possibly a cell A1 in the products.xlsm file where you type the file name of where you want to paste to and the macro reads this file name to complete the copy/paste macro function???

Really have no clue how to accomplish this. Any help is appreciated. Thank you!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,215,157
Messages
6,123,340
Members
449,097
Latest member
thnirmitha

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