+ Reply to Thread
Results 1 to 5 of 5

Excel automatically merge cells via VBA

  1. #1
    Registered User
    Join Date
    07-11-2018
    Location
    INDIA
    MS-Off Ver
    16
    Posts
    40

    Excel automatically merge cells via VBA

    I'm in a situation where I'm pretty sure I could use an Excel macro to do something, I just don't know how to accomplish it. (I think a macro is the right choice because it's not a one-off, it's something I'd have to apply on a regular basis.

    However, my goal is slightly more complicated like first merging, renaming to TOTALs and color the cell

    is any fastest way , because my excel will be 3000+ rows

    I want to go from this:

    Capture.PNG

    To this:

    Captur1e.PNG
    Attached Files Attached Files
    Last edited by AV114; 08-04-2018 at 10:43 AM. Reason: correct attachment

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Excel automatically merge cells via VBA

    Wrong examplefile? Use a pivottable

  3. #3
    Registered User
    Join Date
    07-11-2018
    Location
    INDIA
    MS-Off Ver
    16
    Posts
    40

    Re: Excel automatically merge cells via VBA

    without pivot how to merge it ? using code any idea

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Excel automatically merge cells via VBA


    Hi !

    Activate the Macro recorder and operate manually : you will get your own code base !

    As a reminder, merging cells can be a mess for any future VBA procedure or even some formulas.
    And even asking help in such case, you may be asked to un-merge all the merged cells from your worksheet
    in order the procedure or any formula can work correctly …

  5. #5
    Registered User
    Join Date
    07-11-2018
    Location
    INDIA
    MS-Off Ver
    16
    Posts
    40

    Re: Excel automatically merge cells via VBA

    finally got it.

    Please Login or Register  to view this content.

+ 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] How to AutoFit Row Height Merge Cells Automatically on Change?
    By putritersenyum in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-10-2016, 02:21 AM
  2. Replies: 1
    Last Post: 02-22-2016, 09:51 PM
  3. Merge cells automatically
    By mohan308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2014, 02:34 AM
  4. How to automatically merge cells?
    By sajmen in forum Excel General
    Replies: 3
    Last Post: 11-29-2014, 11:54 AM
  5. Automatically Merge Cells "IF" in Excel
    By scox57 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2013, 08:52 AM
  6. [SOLVED] Merge cells automatically according to criteria
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-05-2013, 12:15 PM
  7. Merge Column Cells With Same Value Automatically
    By matt-gilbert in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-31-2012, 01:24 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