VBA: copy filtered table data to another workbook

henrik2h

Board Regular
Joined
Aug 25, 2008
Messages
149
Office Version
  1. 2021
Platform
  1. Windows
Could anyone point me in a good direction for doing the following.

1. I receive an Input file with data for several products, all arranged in one big table with specific column headers (formatted as range or Excel table, whatever is best)

2. I have one Calculation file where I paste data from the Input file into columns named exactly the same as in the Input file but I only input data from 1 product (using filters on the input file).

3. The calculation file is saved for the specific product.

4. The table in Calculation file is cleared and then I paste data for the second product and save the Calculation file as new name

5. I do this for all products in my input file (normally 5-50 products).

Is there a way to do this with VBA i.e. filter a table in one file and then transfer the values into another file and save that with a new name?

/H
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,203,252
Messages
6,054,385
Members
444,721
Latest member
BAFRA77

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