+ Reply to Thread
Results 1 to 2 of 2

Merge cells from Active cell and just before row called Total

  1. #1
    Registered User
    Join Date
    02-19-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    74

    Unhappy Merge cells from Active cell and just before row called Total

    Hi Experts,

    Am new to VBA and tried to record macro to copy table from pivot table and it worked fine but now I want to do some formatting on the copied table.

    Am always copying data from pivot table and copying to cell starting at Range("D23"). I want to merge cells from D25 till row before "Total". I tried recording and its hardcoded. If number of rows increase/decrease it merge cells with hardcoded range. Is it possible to select range till "Total" and merge?

    Here is the table how it looks before formatting/merging:
    T1.JPG

    This is how I want table to look like:
    T2.JPG

    Also how can I rename "Grand Total" to "Total"

    Any help much appreciated.

    Thanks,
    Richa

  2. #2
    Registered User
    Join Date
    02-19-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    74

    Re: Merge cells from Active cell and just before row called Total

    I tried myself and its fixed.

    Please Login or Register  to view this content.
    Please feel free to optimize code if required.

    Thanks,
    Richa

+ 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: 4
    Last Post: 07-03-2015, 04:27 AM
  2. Merge active cells
    By jyothijayanna in forum Excel General
    Replies: 2
    Last Post: 10-19-2013, 07:53 PM
  3. [SOLVED] Merge cells on non-active workbook
    By jamaal09 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2013, 02:47 PM
  4. Mail merge called from Excel
    By endrefi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2012, 02:19 PM
  5. save active worksheet in directory called in another worksheet cell
    By chi11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2012, 06:15 PM
  6. Replies: 2
    Last Post: 07-20-2006, 09:05 AM
  7. [SOLVED] add-in procedures called from active workbook events
    By doco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2006, 03:20 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