+ Reply to Thread
Results 1 to 5 of 5

VB Code to undo Merge & Center and delete rows

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to undo Merge & Center and delete rows

    Hello:

    Please refer to attached file.
    I have data as shown.
    I need VB Code to perform the following:

    Row 18,21,24, every 3rd row until row which has TEXT "Total" (In this case Row 960) has "Merge & Center".
    Need to undo "merge & Center for all these rows.
    Once undone, copy
    A18 to A19
    A21 to A24 and so on..
    Now delete row 18,21,24 and so on.

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: VB Code to undo Merge & Center and delete rows

    Quote Originally Posted by rizmomin View Post
    Once undone, copy
    And paste where?
    Teach me Excel VBA

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to undo Merge & Center and delete rows

    Hello:

    As mentioned Copy A18 to A19,A21 to A22 and so on

    Please let me know if you have any questions.
    Thanks.

    Riz

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

    Re: VB Code to undo Merge & Center and delete rows

    Hi Riz,
    I used the sheet "Test" for testing, but you can run the code on any active sheet.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to undo Merge & Center and delete rows

    Hi AB33:

    Thanks a lot, works
    Riz

+ 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. Merge and Center
    By bgrish3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2016, 11:55 PM
  2. [SOLVED] Merge and Center Code
    By Chris Michaels in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2015, 11:43 AM
  3. Merge and Center
    By lizardlounge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-15-2010, 01:56 AM
  4. Delete & Merge Columns,Delete Rows with filter, etc
    By traderindia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2009, 02:12 AM
  5. merge and center
    By GINA in forum Excel General
    Replies: 3
    Last Post: 08-15-2005, 12:05 PM
  6. [SOLVED] Merge & Center
    By Rj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2005, 04:06 PM
  7. [SOLVED] Merge & Center
    By JT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2005, 03:06 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