+ Reply to Thread
Results 1 to 17 of 17

Need Macro to repeat number set

  1. #1
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Need Macro to repeat number set

    Hi friends

    I have many set of numbers in column A and Coulmn B each set separated by space.I need to repeat each set to n number of times.Please help

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,868

    Re: Need Macro to repeat number set

    You have not specified what is n. and if it changes for each set. I assumed it is constant and that always there is a blank row between sets. Also assumed that nothing in the worksheet is affected by inserting extra rows.T

    ry this:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Hi kaper

    The n differs for each set and also no of items in each set may vary but all the sets are separated by spaces.No problem in inserting many number of rows.

  4. #4
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    I dont want spaces while repeating the number sets.

    Thanks.

  5. #5
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Hi

    Do u have any doubt on my query?

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

    Re: Need Macro to repeat number set

    My guess.
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Hi jindon

    I shows error

  8. #8
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Sorry i mean code diplays error

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

    Re: Need Macro to repeat number set

    Are you on Windows XP?

    Otherwise, should work.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    s..windows XP

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

    Re: Need Macro to repeat number set

    The try this
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Thank you..it works

  13. #13
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Hi

    Can i change number of times for each number set..

    Thanks

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

    Re: Need Macro to repeat number set

    How do you allocate the numbers?

  15. #15
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Quote Originally Posted by jindon View Post
    How do you allocate the numbers?
    After every set which is separated by spaces i need a automation to ask "how many" for each

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

    Re: Need Macro to repeat number set

    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chennai,india
    MS-Off Ver
    Excel 2007
    Posts
    105

    Re: Need Macro to repeat number set

    Superb..thanks

+ 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. Need a macro to repeat a number from one row to the next row
    By peesh567 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 10:42 AM
  2. [SOLVED] Macro - Repeat macro a specific number of times
    By uvinduds in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2013, 02:42 PM
  3. How to repeat a macro x number of times based on a value in a cell
    By gypsyhotelier in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2011, 05:11 PM
  4. Repeat values based on number count (without macro)
    By ibexcel in forum Excel General
    Replies: 7
    Last Post: 12-17-2009, 06:35 AM
  5. macro to repeat a formula a set number of rows apart
    By steveo in forum Excel General
    Replies: 1
    Last Post: 07-10-2006, 04:21 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