+ Reply to Thread
Results 1 to 5 of 5

Macro to Create Pivot Dynamically

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Macro to Create Pivot Dynamically

    Hi Dears,


    I have created a macro to create Simple Pivot table and set in my tool bar so that i can use it for another workbooks as well.

    the following Code is working fine in same file where i have created macro basically, but not working with other workbooks.

    Pls help me in VBA code , how can i made with work with other workbooks,


    Note: Fieldname "AlertedBy" will be same in otherbooks as well but still not working.



    Please Login or Register  to view this content.
    Last edited by Cutter; 09-09-2012 at 09:22 AM. Reason: Added code tags

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Macro to Create Pivot Dynamically

    You need to put the Macro in a Personal.xlsb file. Here is a tutorial on how to create that file.

    http://www.rondebruin.nl/personal.htm
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Macro to Create Pivot Dynamically

    @ naveenmarapaka

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro to Create Pivot Dynamically

    Hi Alan I did the same as explained,

    Format is my Personal File which all modules that to run, and another is for test purpose to see the result.
    I have total 2 modules now, in which 1 Module has 6 procudures to call and it is working excellent when running in other workbooks even my Personal file Format.XlS is completely password protected including VBA Code.
    Second module is pivot_chart which has the Error it is always saying to unlock the worksheet to run and even after unprotecting the sheet, still it has the problem, code is not working on other workbooks.

    I want to attach the Excel Files of my personal and test.xls but unable to do attach.

  5. #5
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Macro to Create Pivot Dynamically

    Hi dears pls advice

+ 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