+ Reply to Thread
Results 1 to 6 of 6

Type of loop to expand and add

  1. #1
    Registered User
    Join Date
    06-04-2016
    Location
    New York
    MS-Off Ver
    2016
    Posts
    17

    Type of loop to expand and add

    Don't know the best way to start this. I am thinking maybe with a loop, add and expand rows and then values. Any direction would be appreciated


    VBA to expand.png

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: Type of loop to expand and add

    Hi earlyfreak,

    Try below code based on the provided screenshot ...
    Please Login or Register  to view this content.
    Last edited by nankw83; 04-29-2022 at 07:36 PM.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Registered User
    Join Date
    06-04-2016
    Location
    New York
    MS-Off Ver
    2016
    Posts
    17

    Re: Type of loop to expand and add

    nankw83.
    That works great, that's exactly what I was looking for.
    Question, If I changed some of the Set numbers on a few exercises to say 3 is there a way to make the default 5 sets like n picture dynamic to change based on value in that cell

    Thank you, much appreciated for the direction toward solution. Thanks
    Last edited by earlyfreak; 04-29-2022 at 08:43 PM.

  4. #4
    Registered User
    Join Date
    06-04-2016
    Location
    New York
    MS-Off Ver
    2016
    Posts
    17

    Re: Type of loop to expand and add

    nankw83.
    After further testing and getting a better understanding of how code work, it does what I had follow up question on when changing number of sets.
    Could not of figured out without your direction,I was no where close thanks for the education

    Thank you, much appreciated for the direction toward solution. Thanks

  5. #5
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: Type of loop to expand and add

    Happy to help ... If that takes care of your question, please mark this thread as [SOLVED] from the Thread Tools above your first post. Also, you may click on the * Add Reputation under the user name of those who have helped

  6. #6
    Registered User
    Join Date
    06-04-2016
    Location
    New York
    MS-Off Ver
    2016
    Posts
    17

    Re: Type of loop to expand and add

    Solved by nankw83
    Thread complete

+ 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. Replies: 4
    Last Post: 12-27-2021, 09:08 AM
  2. Replies: 3
    Last Post: 04-25-2020, 09:46 AM
  3. Replies: 7
    Last Post: 02-02-2018, 06:21 PM
  4. For type loop verse Do type loop
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2007, 03:02 PM
  5. How can I make a row expand to fit the text I type in?
    By birdonawire in forum Excel General
    Replies: 1
    Last Post: 04-18-2006, 05:15 PM
  6. [SOLVED] Loop through a User-Defined Type?
    By uf_gator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2006, 03:00 PM
  7. [SOLVED] Using the balance sheet template, any way to expand?-way to expand
    By RABBITS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2005, 02:05 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