+ Reply to Thread
Results 1 to 16 of 16

Split data into rows

  1. #1
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Split data into rows

    I need a macro that will split data into rows if more than one line exist in the row and when it runs into this it need to insert a new line before splitting it a part so not to write over info that is below it.

    Sample.xlsx

    Thank you for your help

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    Try
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    I get compiling error on split

    Wrong number of arguments or invalid property assignment

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    Working here and should work without problem.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    It works in there but in the real file I am still getting that error

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    If you are talking about the file other than the one you uploaded, no help.

  7. #7
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    I know that this isn't probably going to help much but here a blanked ver of the file before it grabs the data from other files which might be part of the problem is how it grabs that data

    Blank.xlsm

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    You are asking completely different question now.

    What is your desired result then?

  9. #9
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    the same as before I need to be able to split the data into rows but something in my file seems to be throwing the error when it comes to the SPLIT function

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    No, you need to show us EXACT desired result, otherwise wasting time...

  11. #11
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    I copied in data from the sample.xlsx and tryed to run the macro for spliting and I still get the same error the macro is stored on test module.Blank.xlsm

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    Because you have a procedure named "Split", which should not be named like that, otherwise you can not use vb built-in function Split.

  13. #13
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    Thank you I did not even see that

    (I feel a little dumb right now LOL)

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,534

    Re: Split data into rows

    OK, I don't know if you named it so or you just copied that procedure from somewhere, just remember not to use vb reserved word for a procedure name to avoid any problem.

  15. #15
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Split data into rows

    It was me naming in an effort to try to break apart a huge macro. I slim it down and broke it apart so I could better follow it and I wasn't thinking straight when I named that one... I then I was hour 43 wake lol thank you for pointing it out to me and it is now fixed

  16. #16
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Split data into rows

    For posterity sake.. here's another one to try..

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. How to split data in different rows?
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-10-2015, 11:30 AM
  2. Split Cell data into rows
    By BS Singh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-07-2014, 06:21 AM
  3. Split a row of data into multiple rows
    By chuckyfang in forum Excel General
    Replies: 2
    Last Post: 03-19-2013, 06:13 PM
  4. Split data set by 500 rows help
    By jimboli007 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-07-2012, 01:08 PM
  5. Macro to split a cell data into rows and copying other cells as it is in rows
    By shaan65 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-26-2010, 12:45 AM
  6. Split Data Output into Rows
    By Inbound in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2010, 03:52 AM
  7. Macro to split a single cell data into rows and copying other cells as it is in rows
    By Pankaj Sonawane in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-25-2010, 07:09 PM

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