+ Reply to Thread
Results 1 to 3 of 3

Exporting data from one excel spreadsheet to another excel spreadsheet

  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exporting data from one excel spreadsheet to another excel spreadsheet

    Hi All,
    I have a excel workbook containing 20,000 rows of data. I will have to develop a macro to copy a certain range of data from that excel workbook & paste the same in another excel workbook, rename the workbook & save. Suppose one column contains certain rows with values as 1, next set of rows as column value=2, another set of rows as values =3. I will have to take all the rows corresponding to value 1 and paste in the second excel workbook, rename, save & close. This process repeats for column values=2 & 3 as well.Please help in writing the Macro Code.

    The source Excel resides in the location:E:\Ani\SIMS
    The destination excel resides in the location :C:\AM\SIT

    Please help me in writing the Macro for the same as this is URGENT for me. Looking forward to your kind assistance with the Macro Code for the same.

    Thanks
    Ani

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Exporting data from one excel spreadsheet to another excel spreadsheet

    It depends upon how many values like 1,2,3 etc are there upto 10 ,20 or 100

    now I shall tell you how to go about

    autofilter for 1 in that column
    copy filtered data to the destination workbook and save as in another name and close
    come back to original file and remove autofilter and again autofilter for 2 and do same action.

    you can RECORD or write a macro for this;. if the values 1,2,3 etc are large you can loop it through for each step of 1

    can you work on this?

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Exporting data from one excel spreadsheet to another excel spreadsheet

    On my site are many Parse and Consolidation macros. This one I believe does what you want, you need simply edit the code at the top so that it is filtering by the correct column:
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

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