+ Reply to Thread
Results 1 to 4 of 4

Export a separate CSV when a row column word changes

  1. #1
    Registered User
    Join Date
    08-05-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    2

    Export a separate CSV when a row column word changes

    hi,

    Sorry i haven't been on here for years but I am after a macro or something that will run through my worksheet and create a new CSV file everytime a word changes. Will try and explain below:

    Col1 Col2 Col3 Col4
    Smith John info info
    Smith Dave info info
    Smith Boris info info
    Jones Jane info info
    Johnson Bill info info

    So from the above I need the information in a new CSV for Smiths (this would contain the 3 entries), then another .csv file for jones, then another one for Johnson.

    Many thanks in advance.

    James.

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

    Re: Export a separate CSV when a row column word changes

    This will do what you've outlined:
    Please Login or Register  to view this content.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    08-05-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Export a separate CSV when a row column word changes

    Wow, thanks very much, I wasn't expecting a speedy solution. Many thanks I will try it out and get back to you but I'm sure it is perfect.

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

    Re: Export a separate CSV when a row column word changes

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Search a column for up to 30 words then insert a different word in a separate column
    By SFore in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-18-2014, 05:13 PM
  2. Replies: 0
    Last Post: 01-25-2013, 07:03 AM
  3. Control word from vba/excel - export multiple oleobjects to word
    By mathengineer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2012, 11:09 AM
  4. Split cell so that the last word in separate column
    By CameronP in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-03-2012, 02:01 AM
  5. Export each row to separate TXT (header row always included)
    By tvancoillie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2012, 04:28 AM
  6. separate and export to xml
    By Geoff Stacey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2011, 05:22 PM
  7. export cell contents to Word fields in a protected Word document
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2011, 09:31 AM

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