+ Reply to Thread
Results 1 to 3 of 3

Macro to Copy Data from A workpaper based on a criteria and save it to a specific Folder

  1. #1
    Registered User
    Join Date
    04-13-2017
    Location
    INDIA
    MS-Off Ver
    2016
    Posts
    1

    Macro to Copy Data from A workpaper based on a criteria and save it to a specific Folder

    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

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,955

    Re: Macro to Copy Data from A workpaper based on a criteria and save it to a specific Fold

    Hallo excel1979

    Welcome to the Forum.
    Ideally, you will get a result if you upload sample workbooks with a "BEFORE" and "AFTER" depicting the result you require.
    Do a manual mock-up if necessary.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,307

    Re: Macro to Copy Data from A workpaper based on a criteria and save it to a specific Fold

    Possibly...
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 04-06-2017, 03:30 AM
  2. [SOLVED] macro to copy from a closed workbook on a desktop folder and save specific amended sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2017, 08:56 AM
  3. How to copy Sheet to a new workbook and save to a specific folder
    By moxman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2014, 07:43 PM
  4. HELP! Macro to Copy specific cells from one sheet to another based on specific criteria
    By atriscritti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 11:05 AM
  5. Save entire workbook as copy in specific folder with VBA
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2012, 08:35 AM
  6. [SOLVED] Macro to save workbook to specific folder with a specific name, then kill/disable itself.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2012, 03:50 PM
  7. [SOLVED] Create a new folder based on a cell name or value and save copy onto that folder
    By Le_Tiago in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-20-2012, 01:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1