Results 1 to 6 of 6

Macro to copy entries from a file (if they satisfy a condition) and save in a new file

Threaded View

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Macro to copy entries from a file (if they satisfy a condition) and save in a new file

    Hi,

    I need to copy entries from one consolidated file and split them into different files. I have attached the file containing my data.

    What I need to do is copy all the entries for one country and create & save (as country name) a new excel file containing all the entries for that country. My data is all sorted by country name, so a simple 'if' condition to copy all the cells till the country name changes should work. I would also need the heading row (1).

    Path to save: C:\Documents and Settings\prabhakarc\Desktop\Caleb

    Some ideas that I have: I have created a blank template file with the headings with the name Country_Data, so pasting the copied data into this file and Saving As 'Country name' copied from the consolidated file might work?

    Appreciate the help in advance!

    Thanks,
    Caleb
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

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