Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Refreshing multiple forms and pivot tables

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi, I am very new to Macro Programming and this is my first attempt. I am hoping someone here can help me. Basically, I have multiple worksheets, and muliple pivot tables, which I would like to be refreshed when the user either opens the workbook, or when he clicks on something in the book itself. I did a search already and saw this sort of question has been asked before, but I did not understand the solution since I am very new. Can somone explain or give me an example as well? Thanks for your help.

  2. #2
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    bump

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    CA
    Posts
    180
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Within a pivot table right click and go to table options.

    Check the box for "refresh on open" (towards the lower left)

    this will refreh the pivot tables when the file is opened.

  4. #4
    Board Regular
    Join Date
    Apr 2002
    Location
    A Mile High!!
    Posts
    241
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    The macro line is something like this:
    Set pvtTable1 = Worksheets("Mtr1").Range("d10").PivotTable
    pvtTable1.RefreshTable

    Where d10 is the position of the pivottable. You will need an IF statement before depending on what you want to trigger it.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •