+ Reply to Thread
Results 1 to 4 of 4

VBA to replace rows based on name.

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Talking VBA to replace rows based on name.

    That was one awful and misleading title.

    Anyways:

    1.png

    This image is from an example sheet (sensitive information and all), unfortunately i cant post the sheet for some reason.

    Question: When the rows containing 'Puppy' and 'Kitten', are in that order, i want to swap the contents of the rows.

    So my sheet will look like this:

    2.png

    How do i go about this?

    Thanks,
    Liam
    Last edited by liamfrancis2013; 09-16-2016 at 10:04 AM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: VBA to replace rows based on name.

    Something like:

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: VBA to replace rows based on name.

    Not sure to see a difference between the 2 displays but
    try next code
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  4. #4
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: VBA to replace rows based on name.

    Thanks guys, 'MicrowaveKitten' was all i ended up needing XD

+ 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] Replace Rows Based on Checkbox Selection
    By pkardt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2016, 07:49 PM
  2. [SOLVED] Replace values in rows based on criteria in column B
    By Marq555 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2015, 10:25 AM
  3. looking for a macro to search and replace within rows and the do the same in the next row
    By johnjones1962 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2013, 08:55 PM
  4. Every X amount of rows, find and replace XXX
    By cre8787 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2013, 05:26 PM
  5. Find-Replace in specific rows
    By ajaykgarg in forum Excel General
    Replies: 3
    Last Post: 06-10-2010, 02:31 AM
  6. [SOLVED] find and replace - replace data in rows to separated by commas
    By msdker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2006, 08:10 PM
  7. [SOLVED] Search and Replace Rows
    By MaddMax in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2006, 12:55 PM

Tags for this Thread

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