Consulting

Results 1 to 9 of 9

Thread: Delimiting a cell to the rows below

  1. #1

    Delimiting a cell to the rows below

    Does anyone one know how I can delimit serveral cells of ColC filled with several e-mails seperated by ";" and place each e-mail in the rows below?

    For example before executing the macro


    ------------ColC----------

    row1 ------E-Mails-------

    row2-aa@aa.com;bb@bb.com;cc@cc.com

    row3-dd@dd.com;ee@ee.com;ff@ff.com

    row4-gg@gg.com;hh@hh.com

    row5-ii@ii.com


    Result after executing the macro


    ----------ColC----------

    row1 -----E-Mails-------

    row2-aa@aa.com

    row3-bb@bb.com

    row4-cc@cc.com

    row5-dd@dd.com

    row6-ee@ee.com

    row7-ff@ff.com

    row8-gg@gg.com

    row9-hh@hh.com

    row10-ii@ii.com

    Any help is hightly appreciated

  2. #2
    VBAX Regular
    Joined
    Nov 2010
    Location
    Las Vegas Nv
    Posts
    74
    Location
    Check out the Split() function. breaks a delimited string into an array that you can then do whatever you want with

  3. #3
    I don't even have the split function built in my excel 2003.

    I've been trying to use the delimited method but I can only seperating the e-mails on the same row and not below the cell.

  4. #4
    VBAX Regular
    Joined
    Nov 2010
    Location
    Las Vegas Nv
    Posts
    74
    Location
    odd... it's in mine... it's standard VB i thought?

  5. #5
    VBAX Contributor
    Joined
    May 2010
    Location
    Sydney, NSW, Australia
    Posts
    170
    Location
    What happens when you run this:

    [vba]
    Sub TestSplit()
    Dim MyVar As Variant
    Dim X As Long
    MyVar = Split("1;Hello;World;93", ";")
    For X = LBound(MyVar) To UBound(MyVar)
    MsgBox MyVar(X)
    Next
    End Sub
    [/vba]

    I thought Split existed from yonks ago.

  6. #6
    there's a delimit function but no split
    it must be the same right?

  7. #7
    VBAX Regular
    Joined
    Nov 2010
    Location
    Las Vegas Nv
    Posts
    74
    Location
    i don't have Delimit(), but i would think it would do the opposite, and concatenate a string based on a delimiter, rather than separating it..

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    What language version of Excel do you have? Are you talking about Excel rather than VBA?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  9. #9
    VBAX Regular
    Joined
    Nov 2010
    Location
    Las Vegas Nv
    Posts
    74
    Location
    he said he's using excel 2003, but i don't have a delimit spreadsheet function either?

Posting Permissions

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