+ Reply to Thread
Results 1 to 2 of 2

Formatting data table with macro

  1. #1
    Registered User
    Join Date
    06-02-2013
    Location
    ENGLAND
    MS-Off Ver
    Excel 2007
    Posts
    1

    Formatting data table with macro

    Hi All
    Please bear with me I am quite good with simple macros but by no means a VBA expert

    I have a macro than runs me 3 different pivot tables which i then copy and paste to a new sheet.
    I then want a macro to format these pivot tables......I have written a macro but because the number of rows and columns changes each time a run the pivot tables the formatting macro doesn't work properly.
    please see screenshots - capture 8 is the formatting i'm hoping to achive
    thanks
    Attached Images Attached Images

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formatting data table with macro

    Please read through the forum rules. Link is above in the menu bar. It not only includes the rules you MUST follow, it includes tips for insuring your posts are considered well by all those who might want to help. For instance, post a workbook instead of pictures, the workbook can include BEFORE and AfTER sheets, just like your pictures.

    And also, post code in the thread, surrounded by CODE tags, rather than pictures of code. I was tempted to take a picture of the answer I'm giving, then decided not to... this time.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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