+ Reply to Thread
Results 1 to 4 of 4

Help with partially working Macro to separate groups

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    FL
    MS-Off Ver
    Excel 2013
    Posts
    123

    Help with partially working Macro to separate groups

    Hello,

    I wrote a Macro, however it does not work all the time. I have put in two sheets. The first works the second doesn't. I can't seem to figure out what is wrong as everything appears to be correct.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Help with partially working Macro to separate groups

    I think you want iRow = 2, otherwise you start by comparing E6 to E5, which explains why nothing is happening on your second sheet.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Help with partially working Macro to separate groups

    Hi kleptilian

    Try this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Help with partially working Macro to separate groups

    You need to loop back ward if you want to inset rows. Avoid using do and while loops, use instead for loop, like

    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)

Similar Threads

  1. [SOLVED] Macro that can sort and copy groups of data into separate spreadsheets
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2014, 03:12 PM
  2. [SOLVED] PC Macro only partially working on Macs
    By sdnorton in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2014, 01:38 PM
  3. Macro only partially working
    By LilSisKin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-26-2013, 06:04 PM
  4. Event Macro for expanding/contracting groups not working
    By orktoss in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2012, 02:23 PM
  5. Macro/Script for Moving Groups of Data in to Separate Columns
    By JustinSxcel in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 07-05-2012, 01:56 AM

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