+ Reply to Thread
Results 1 to 6 of 6

VBA not deleting rows

  1. #1
    Registered User
    Join Date
    12-14-2018
    Location
    Vermont
    MS-Off Ver
    Office 365
    Posts
    3

    VBA not deleting rows

    I've been using this great Macro by Jerry Beaucaire to copy information from duplicate rows. The Macro is supposed to delete the rows after merging them but for some reason it is not deleting them - it merges the information perfectly but now I've got multiple rows.

    My workbook has numerous columns, about 125 for different items. In my worksheets, the key column is "F" which contains the customers' last name.

    Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA not deleting rows

    Please upload the workbook and explain what you expect to happen when the macro has run.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-14-2018
    Location
    Vermont
    MS-Off Ver
    Office 365
    Posts
    3

    Re: VBA not deleting rows

    The Workbook is attached -

    What I need to have happen is for the multiple rows with the same customer name to be merged into one row -
    From this:
    excel sample.jpg

    to this:

    excel sample 2.jpg

    The macro is copying all the information onto the first line. Using Rich Biller in the images as an example - everything is on the first line and the second should be deleted.



    Thanks,
    Steve
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,282

    Re: VBA not deleting rows

    Perhab
    Please Login or Register  to view this content.
    "ThankyouFor Attention * And Your Help!!"

  5. #5
    Registered User
    Join Date
    12-14-2018
    Location
    Vermont
    MS-Off Ver
    Office 365
    Posts
    3

    Re: VBA not deleting rows

    Quote Originally Posted by daboho View Post
    Perhab
    Please Login or Register  to view this content.
    This seems to be deleting the first row of the duplicated data, which is the row that has all the joined data on it.

    Is there a way to change it so that it deletes the second (and in some cases third) row of data?

    Thanks

  6. #6
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,282

    Re: VBA not deleting rows

    my code has delete second of data

+ 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: 10
    Last Post: 06-07-2018, 04:16 PM
  2. Code for Eliminating duplicate rows and re arrange without deleting rows
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2016, 02:42 PM
  3. Replies: 2
    Last Post: 08-20-2013, 07:52 AM
  4. [SOLVED] Macro help with combining data across 2 rows (and deleting non-required rows)
    By InnesMcc in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-20-2013, 05:21 AM
  5. Changing code from deleting rows to cut/paste rows into another sheet and delete blank row
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 01:54 AM
  6. [SOLVED] Deleting part of a column without deleting whole rows.
    By dstrdOne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2013, 11:42 AM
  7. VBA- deleting rows which contain cells that meet criteria, but skip alpha rows
    By cheapkid1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2012, 08:49 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