+ Reply to Thread
Results 1 to 10 of 10

Need Help! for macro looping, autoinsert comma delimited number

  1. #1
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Need Help! for macro looping, autoinsert comma delimited number

    Hello!
    Need help! to make a loop or something, the function of the macro it's to insert the number of secuence in sheet2 in a comma delimited from sheet1, but at this point it has to be in the manual way and what i want to do is to have it on automatic and stop until find a blank cell.



    Will preciate your help!!
    Attached Files Attached Files

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Hello werko, try the attached.
    Attached Files Attached Files
    多么想要告诉你 我好喜欢你

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Hello werko,

    I have updated your macro to add the comma between sequence numbers. Here is the macro code...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Thanks, Millz
    it's working almost perfect, can be there a little modification to start the secuence from 1 till finds the blank cell
    Correct secuence:,1,2,3,4 and your code gives me a weird secuence:,10,2,1,6...

  5. #5
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Quote Originally Posted by werko View Post
    and your code gives me a weird secuence:,10,2,1,6...
    I don't understand this, I get the same results with what you have at the right side. The "sequence" is based on the order number.

  6. #6
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Need Help! for macro looping, autoinsert comma delimited number

    I'm sorrry Millz.
    This happens if i change the secuence of the orders in column B on sheet1, Column A, # always start from 1 to x number..

  7. #7
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Can you show another sample workbook?

    So you want the sequence of the order number sorted? Or do you want to leave the order number alone, but only display the "secuence" in the correct sequence?

  8. #8
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Here's another sample, column C "Secuence" must be in order from 1 to x...
    Attached Files Attached Files

  9. #9
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Need Help! for macro looping, autoinsert comma delimited number

    Hi werko, see if this is what you want.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Thumbs up Re: Need Help! for macro looping, autoinsert comma delimited number

    Thank You!! very much Millz

    Preciate you help...

+ 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] Macro to save file as CSV (Comma Delimited)
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-09-2014, 03:23 PM
  2. [SOLVED] Macro to Save Excel sheet as comma delimited txt file
    By dileeprajam in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 04-22-2014, 05:01 PM
  3. [SOLVED] Pipe delimited vs comma delimited problem
    By theletterh in forum Excel General
    Replies: 4
    Last Post: 01-23-2013, 07:27 PM
  4. [SOLVED] Macro to Import Multiple Comma Quote Delimited Files into One Spreadsheet
    By schmidt62 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2012, 06:55 AM
  5. [SOLVED] Totaling the number of comma delimited numbers in a column
    By Glynn Furr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2006, 09:25 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