Must be a simple way to do this ...

we44

New Member
Joined
Sep 8, 2011
Messages
4
I've hunted everywhere and found related answers but none that specifically do this simple request:

I have 2 excel files (excel 2000), call them file A and file B.
Each has a single worksheet with data.
I want to combine these two separate worksheets into a NEW file with 2 worksheets, ie. file C with Worksheets A and B.

I don't need any processing of the data or manipulation in any way, just a straightforward copy of the data into the new file.

Ideally I'd like a means to open a dialogue box pointing at a predefined NAS share (or C:/ drive) where I can select the two source files without the need to have them open. The target file will be created with the 2 tabs (in alphabetical order of source filename), and remain open on completion of the data transfer for user validation.

Any help appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

for the dialog box to open you would need the macro in one of the files (or a separate third file) which then opens the workbooks, copies the data and closes them.

as far as i know the only way to do it. Is this something your after?
 
Upvote 0
Having the macro embedded in the target file would be OK as I could always ensure a "Save As" process follows from that to preserve the integrity of the "master" target file, if that makes sense.

I've come across add-ins too which sit within the core excel functionality and are therefore available to all excel files through the data menu option. I was thinking whether I could use this and convert the resulting macro to an add-in process.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
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