+ Reply to Thread
Results 1 to 3 of 3

VBA to auto merge and middle align for particular row in dynamic range

  1. #1
    Registered User
    Join Date
    06-17-2012
    Location
    UNITED STATES
    MS-Off Ver
    Excel 2010
    Posts
    29

    VBA to auto merge and middle align for particular row in dynamic range

    Hi all,
    I am able to create pivot table using VBA but facing issue with formating when data were in dynamic range
    Data for "B8 to M8" columns are fluctuating according to data retrieved from database.That means for the header 'CT' and 'SR/LIT', maximum 4 subcolumns or less will be populated(i.e. NS-L, NS-UL, S-L, S-UL )

    For CT or SR/LIT header, if the sub-columns populated are less than 4, how the macro will auto merge and keep the middle align. Similarly other header should be auto merge whatever the data might be(CT Total, SR/LIT Total, Grand Total).
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA to auto merge and middle align for particular row in dynamic range

    Hi cruise.alter, try it
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-17-2012
    Location
    UNITED STATES
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: VBA to auto merge and middle align for particular row in dynamic range

    Thanks Nilem...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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