export specific sheets based on sheets names list into column and same formatting

leap out

Active Member
Joined
Dec 4, 2020
Messages
288
Office Version
  1. 2016
  2. 2010
Hi experts ,
I have file name INVEN with single search v0 c in SAVE FILE sheet contains sheets names list should match with sheets name , if they are matched then should create new file as xlsm for specific sheets as are written as in SAVE FILE sheet contains sheets names list for file name INVEN with single search v0 c with the same formatting . if one of them not matched then should pop message about wrong sheet name and give me two choices " do you have continue" if I press ok then add new file contains just matched sheets and ignore not matched, if I press no , then doesn't do any thing .
should save new file as xlsm and should replace for new file when run every time with make new file name STOCK - & current year
note: should arrange sheets location when create new file as existed in file name INVEN with single search v0 c in SAVE FILE sheet contains sheets names list
also posted here , but no answering so far .
add new file for specific sheets based on sheets names list into column and same formattin
thanks


INVEN with single search v0 c.xlsm
ABCDEF
1itemCODEBRANDTYPEMANUFACTUREQTY
21AA-110W40 208LQ8EU2222
32AA-215W40 208LCASSU400
43AA-35W30 208LQ8EU800
54AA-45W30 12x1LQ8EU600
65AA-510W40 208LENIIT300
76AA-65W30 4x4LQ8EU200
87AA-710W40 12x1LQ8EU120
98AA-815W40 12x1LCASSU450
109AA-910W40 12x1LENIIT890
1110AA-1010W40 4x4LQ8EU345
1211AA-1110W40 4x4LCASSU78
1312AA-1210W40 4x4LENIIT123
1413AA-135W40 4x4LQ8EU456
1514AA-145W40 4x4LCASSU678
1615AA-155W40 4x4LENIIT1234
1716AA-1620W50 4x4LQ8EU456
STOCK



INVEN with single search v0 c.xlsm
ABCDEF
1DATECODEBRANDTYPEMANUFACTURESALES
201-01-2021AA-110W40 208LQ8EU100
302-01-2021AA-215W40 208LCASSU50
403-01-2021AA-35W30 208LQ8EU280
504-01-2021AA-45W30 12x1LQ8EU300
605-01-2021AA-510W40 208LENIIT80
706-01-2021AA-65W30 4x4LQ8EU20
807-01-2021AA-710W40 12x1LQ8EU20
908-01-2021AA-815W40 12x1LCASSU20
1009-01-2021AA-910W40 12x1LENIIT876
1110-01-2021AA-1010W40 4x4LQ8EU345
1211-01-2021AA-1110W40 4x4LCASSU123
1312-01-2021AA-1210W40 4x4LENIIT78
1413-01-2021AA-135W40 4x4LQ8EU300
1514-01-2021AA-145W40 4x4LCASSU34
1615-01-2021AA-155W40 4x4LENIIT23
1716-01-2021AA-1620W50 4x4LQ8EU56
1817-01-2021AA-110W40 208LQ8EU100
sales



INVEN with single search v0 c.xlsm
ABCDEF
1DATECODEBRANDTYPEMANUFACTUREPURCHASE
204-02-2021AA-110W40 208LQ8EU55
305-02-2021AA-215W40 208LCASSU20
406-02-2021AA-35W30 208LQ8EU10
507-02-2021AA-45W30 12x1LQ8EU10
608-02-2021AA-510W40 208LENIIT3
709-02-2021AA-65W30 4x4LQ8EU4
810-02-2021AA-710W40 12x1LQ8EU45
911-02-2021AA-815W40 12x1LCASSU8
1012-02-2021AA-910W40 12x1LENIIT1
1113-02-2021AA-1010W40 4x4LQ8EU100
1214-02-2021AA-1110W40 4x4LCASSU20
1315-02-2021AA-1210W40 4x4LENIIT100
1416-02-2021AA-135W40 4x4LQ8EU44
1517-02-2021AA-145W40 4x4LCASSU20
1618-02-2021AA-155W40 4x4LENIIT50
1719-02-2021AA-1620W50 4x4LQ8EU12
1820-02-2021AA-1720W50 4x4LCASSU9
1921-02-2021AA-1820W50 4x4LENIIT4
2022-02-2021AA-110W40 208LQ8EU55
pur


INVEN with single search v0 c.xlsm
ABCDEF
1itemCODEBRANDTYPEMANUFACTUREreturns
205-04-2021AA-910W40 12x1LENIIT20
306-04-2021AA-1010W40 4x4LQ8EU30
407-04-2021AA-1110W40 4x4LCASSU40
508-04-2021AA-45W30 12x1LQ8EU10
609-04-2021AA-45W30 12x1LQ8EU11
RETURNS



INVEN with single search v0 c.xlsm
ABCDEFGHIJ
1itemCODEBRANDTYPEMANUFACTURESTOCKSALESPURRETURNSBALANCE
21AA-110W40 208LQ8EU22222001102132
32AA-215W40 208LCASSU4005020370
43AA-35W30 208LQ8EU80028010530
54AA-45W30 12x1LQ8EU6003001021331
65AA-510W40 208LENIIT300803223
76AA-65W30 4x4LQ8EU200204184
87AA-710W40 12x1LQ8EU1202045145
98AA-815W40 12x1LCASSU450208438
109AA-910W40 12x1LENIIT89087612035
1110AA-1010W40 4x4LQ8EU34534510030130
1211AA-1110W40 4x4LCASSU78123204015
1312AA-1210W40 4x4LENIIT12378100145
1413AA-135W40 4x4LQ8EU45630044200
1514AA-145W40 4x4LCASSU6783420664
1615AA-155W40 4x4LENIIT123423501261
1716AA-1620W50 4x4LQ8EU4565612412
1817AA-1720W50 4x4LCASSU99
1918AA-1820W50 4x4LENIIT44
SUMMARY


and should export specific sheets with the same formatting based on column A in SAVE FILE sheet
INVEN with single search v0 c.xlsm
A
1LIST
2SUMMARY
3STOCK
4RETURNS
5
6
7
8
SAVE FILE


so the result based on SAVE FILE sheet should be add new file with specific sheets are exported like this:
SOTCK-2023.xlsm
ABCDEFGHIJ
1itemCODEBRANDTYPEMANUFACTURESTOCKSALESPURRETURNSBALANCE
21AA-110W40 208LQ8EU22222001102132
32AA-215W40 208LCASSU4005020370
43AA-35W30 208LQ8EU80028010530
54AA-45W30 12x1LQ8EU6003001021331
65AA-510W40 208LENIIT300803223
76AA-65W30 4x4LQ8EU200204184
87AA-710W40 12x1LQ8EU1202045145
98AA-815W40 12x1LCASSU450208438
109AA-910W40 12x1LENIIT89087612035
1110AA-1010W40 4x4LQ8EU34534510030130
1211AA-1110W40 4x4LCASSU78123204015
1312AA-1210W40 4x4LENIIT12378100145
1413AA-135W40 4x4LQ8EU45630044200
1514AA-145W40 4x4LCASSU6783420664
1615AA-155W40 4x4LENIIT123423501261
1716AA-1620W50 4x4LQ8EU4565612412
1817AA-1720W50 4x4LCASSU99
1918AA-1820W50 4x4LENIIT44
SUMMARY



SOTCK-2023.xlsm
ABCDEF
1itemCODEBRANDTYPEMANUFACTUREQTY
21AA-110W40 208LQ8EU2222
32AA-215W40 208LCASSU400
43AA-35W30 208LQ8EU800
54AA-45W30 12x1LQ8EU600
65AA-510W40 208LENIIT300
76AA-65W30 4x4LQ8EU200
87AA-710W40 12x1LQ8EU120
98AA-815W40 12x1LCASSU450
109AA-910W40 12x1LENIIT890
1110AA-1010W40 4x4LQ8EU345
1211AA-1110W40 4x4LCASSU78
1312AA-1210W40 4x4LENIIT123
1413AA-135W40 4x4LQ8EU456
1514AA-145W40 4x4LCASSU678
1615AA-155W40 4x4LENIIT1234
1716AA-1620W50 4x4LQ8EU456
STOCK



SOTCK-2023.xlsm
ABCDEF
1itemCODEBRANDTYPEMANUFACTUREreturns
205-04-2021AA-910W40 12x1LENIIT20
306-04-2021AA-1010W40 4x4LQ8EU30
407-04-2021AA-1110W40 4x4LCASSU40
508-04-2021AA-45W30 12x1LQ8EU10
609-04-2021AA-45W30 12x1LQ8EU11
RETURNS
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,888
Messages
6,175,208
Members
452,618
Latest member
Tam84

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