+ Reply to Thread
Results 1 to 5 of 5

Split Cell content in multiple cells

  1. #1
    Registered User
    Join Date
    11-28-2008
    Location
    athens
    Posts
    4

    Smile Split Cell content in multiple cells

    Hallo All! I am very new to VBA Excel and i have a question. I have a sub routine which outputs some information in a cell that is separated by space. Something like that: "asda asda efrrwe werw 234 sfds". I just just to place each one of them in different cells! Could you help me out?! (i am not so into programming..)
    Thanks!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you show your existing code, remember to use Code Tags
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470
    Quote Originally Posted by pomolo View Post
    Hallo All! I am very new to VBA Excel and i have a question. I have a sub routine which outputs some information in a cell that is separated by space. Something like that: "asda asda efrrwe werw 234 sfds". I just just to place each one of them in different cells! Could you help me out?! (i am not so into programming..)
    Thanks!
    You should used Split - VBA function


    Function Split(Expression As String, [Delimiter], [Limit As Long = -1], [Compare As VbCompareMethod = vbBinaryCompare])

    Member of VBA.Strings
    Split a string into an array

  4. #4
    Registered User
    Join Date
    11-28-2008
    Location
    athens
    Posts
    4

    code..

    Quote Originally Posted by royUK View Post
    Can you show your existing code, remember to use Code Tags
    This is basically an example code that i use together with imacro program. It reads a list of company names (companyname) and for every one of the list outputs a stock value.If you chose to output more than one value for every company name you get all infos in the same cell separated by space.
    Could you help me out output those values, one in each cell?

    Thanks Again for your quick reply!

    pomolo

    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I can't test the code, it's not working on my computer. You should not really give a variable a name like Row, it may cause problems

    Try this untested but it might work. 10 is only a guess for the rows
    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)

Tags for this Thread

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