+ Reply to Thread
Results 1 to 5 of 5

Merge email address list

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    2

    Merge email address list

    Hi

    I have an excel sheet with multiple columns

    In one column I have a bunch of email addresses (and another with phone numbers) say Column G.

    Example
    a@a.com
    b@b.com
    c@c.com

    I need to be able to select the cells with the data (part of column G), run a macro, and have it output in the following format to a predetermined cell ie E1

    a@a.com;b@b.com;c@c.com

    With phone numbers, will need to do the same thing but use a "," instead of ";"

    I've tried varients of code I have found but really don't understand VB enough to make them do what I want

    Cheers
    Paul

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Merge email address list

    There are a few UDF's for doing this sort of thing available. One is below. Then type something like =Range2Csv(G5:G14,";") in E1, where G5:G14 is the cells you want to apply it to and ; is the delimiter you want.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    2

    Re: Merge email address list

    Hi ragulduy

    That actually makes sense! Thanks

    However on using it in my sheet, excel seems to recognise Range2Csv as a function but I get a #NAME? error when I use it in the format you specified (with or without a delimiter)

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Merge email address list

    Where have you put the code? It should be in a separate module.

    Can you upload your worksheet?

  5. #5
    Registered User
    Join Date
    08-11-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    2

    Re: Merge email address list

    Hi Ragulduy

    Seems it musnt have saved properly or something - its all good now!

    Works just as I was after - thanks for your help, much appreciated.

    Cheers
    Paul

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Merge email address list

    Assumes the email addresses are in Column F and places them in E1.
    Assumes the phone numbers are in Column G and places them in D1.

    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: 02-21-2013, 04:46 AM
  2. Replies: 1
    Last Post: 03-08-2012, 01:57 PM
  3. send email from XL list of email address
    By pauluk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2009, 11:36 AM
  4. send email from address list
    By garfield in forum Excel General
    Replies: 1
    Last Post: 06-14-2007, 08:22 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