+ Reply to Thread
Results 1 to 2 of 2

Macro to insert rows for non-matched values

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Sofia
    MS-Off Ver
    Excel 2013
    Posts
    10

    Macro to insert rows for non-matched values

    Hi,

    I think my code is 90% ready but there is a case I can't resolve, please help!

    My current macro works partially, it finds which codes are missing from the report (compared to a master list on another worksheet) with a Match method and it appends them to the end of the report. This works perfectly. However, instead of appending them to the end, I'd like to insert the codes in the same order as in the master list. Is this possible?

    I can't sort alphabetically to fix the problem, because the report comes with "Subtotal" lines for each section (non-Excel generated) and if I sort - all subtotals will be grouped together. Also the sequence of the coding might not always be alphabetical.

    thanks!

    https://www.dropbox.com/s/o2izvoowyaibhyn/sample.xlsm

  2. #2
    Registered User
    Join Date
    01-25-2013
    Location
    Sofia
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Macro to insert rows for non-matched values

    Anyone? The above codes does not store the address of the last matched value, so I don't know how to insert a row right after it. Please 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 insert blank rows below rows with values
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2013, 11:48 AM
  2. [SOLVED] I need a Macro that doubles rows when criterias are matched
    By isasa74 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-30-2012, 01:56 PM
  3. fetch values from matched rows
    By katia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2011, 05:58 AM
  4. macro to check rows for matched data
    By dcmb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2009, 02:38 PM
  5. Copying values from matched rows
    By seaweasel in forum Excel General
    Replies: 12
    Last Post: 06-22-2009, 06:18 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