Consulting

Results 1 to 2 of 2

Thread: VBA to merge / unmerge identified rows when target is used

  1. #1
    VBAX Newbie
    Joined
    Mar 2017
    Posts
    1
    Location

    VBA to merge / unmerge identified rows when target is used

    In the attached excel I would want to be able to merge two rows for certain continuous columns / range of columns. Say for Columns A to AF, I need to merge 2 rows of each of the columns.

    Can you pls help with the code, where it says,
    'VENDOR PART PAYMENT STATUS ACTIONS?

    that is the portion of the code for this question.
    Attached Files Attached Files

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Rather than
     Target.Offset (0): Target.Offset(1).Merge
    try
    Target.Resize(2).Merge
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •