Hi All,
i would need your help to create macro which creates a new workbook based on a column value in Master workbook and then save that to a folder in a specific location.
Example :
In attached master file , column "Ship to State" is Virginia, New York, California...based on this column , new 3 workbooks should be created with all the line items from master file which has column "ship to state" as a unique state name. Then these new files should be saved to already created folders on a particular location in c drive . C:\Folders\
Company Name Company Role Document Currency DocumentDate Document Number Document Gross Amount Document Exempt Amount Document Taxable Amount Document Tax Amount Document Calculated Tax Rate Calculation Type Credit Flag Document Transaction Date Document Fiscal Date Line Taxable State Line Number Description Quantity Product Code Commodity Code Transaction Type Line Gross Amount Line Exempt Amount Line Taxable Amount Line Tax Amount Line Calculated Tax Rate Line State Tax Amount Line County Tax Amount Line City Tax Amount Line District Tax Amount Reversal Customer Number Customer Name Vendor Number Vendor Name Transaction Date Fiscal Date Ship From State Ship From County Ship From City Ship From Postcode Ship From Geocode Ship To State Ship To County Ship To City Ship To Postcode Ship To Geocode Supply State Supply County Supply City Supply Postcode Supply Geocode Order Acceptance State Order Acceptance County Order Acceptance City Order Acceptance Postcode Order Acceptance Geocode Calling System Number Host System
ABC Seller USD 20-May-14 1135101 0 0 0 0 0 No 17-Feb-17 13-Feb-17 VIRGINIA 1 -1 432116 Goods 0 0 0 0 0 0 0 0 0 No 6111839 DSF 17-Feb-17 13-Feb-17 KENTUCKY JEFFERSON LOUISVILLE VIRGINIA JAMES CITY UNINCORPORATED 23168 VIRGINIA JAMES CITY UNINCORPORATED 23168 MASSACHUSETTS MIDDLESEX CHELMSFORD 222 PROD
ABC Seller USD 18-Nov-14 1134917 0 0 0 0 0 No 7-Feb-17 7-Feb-17 NEW YORK 1 1 81111812.13 Default Services 0 0 0 0 0 0 0 0 0 No 6112822 DER 7-Feb-17 7-Feb-17 NEW YORK OSWEGO OSWEGO 13126 NEW YORK OSWEGO OSWEGO 13126 MASSACHUSETTS MIDDLESEX CHELMSFORD 222 PROD
ABC Seller USD 18-Nov-14 1134957 0 0 0 0 0 No 9-Feb-17 9-Feb-17 NEW YORK 1 -1 432116 Goods 0 0 0 0 0 0 0 0 0 No 6112822 RED 9-Feb-17 9-Feb-17 KENTUCKY JEFFERSON LOUISVILLE California OSWEGO OSWEGO 13126 NEW YORK OSWEGO OSWEGO 13126 MASSACHUSETTS MIDDLESEX CHELMSFORD 222 PROD
Bookmarks