+ Reply to Thread
Results 1 to 3 of 3

making pivot table in macro

  1. #1
    Registered User
    Join Date
    02-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    making pivot table in macro

    Hi,

    I am building the pivot table in macro in excel 2003. The table is big, it did not work in excel 2000 so I moved to 2003 and I can build it manually and record the macro for it. However in the program (vba) it does not work. I included displayalerts statement to pass a few warnings (message :do you want to replace contents of worksheet ) and it is running through but no data at all on the pivot tables. I am getting just blank pivot table.
    Here is what is going on: It build pivot table and I can see it while it's running. It builds with the data correctly but it put pivot table on the top of the original table. And that's it.
    After it's saved and closed when I open xls file I do not see data - not on new worksheet not on the original worksheet - so looks like it builds pivot table correctly but does not save it in the destination pivot table. I see only empty pivot data with no data at all even without field names.
    The code is below just in case you need it, the saving of xls file is performed later in the main procedure.

    I appreciate any help on this.
    Please Login or Register  to view this content.
    Last edited by royUK; 02-21-2010 at 10:52 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: making pivot table in macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Added this time,make sure that you read the Forum Rules
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: making pivot table in macro

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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