+ Reply to Thread
Results 1 to 3 of 3

how to "really" lock pivot table selections?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2006
    Posts
    40

    Question how to "really" lock pivot table selections?

    I have a worksheet that gets added onto & modified each week with a VBA program I wrote, and the pivots are supposed to update automatically each time it does. The problem is this: The VBA script deletes certain rows from this sheet when they're completed, and adds new ones on as they come in. And when rows delete, the pivot tables change the size of their selection.

    For example, if its set to use $A$20:$AC$5000 for its data, and then the macro deletes 100 rows for this week but adds 100 new ones, the pivot changes its selection to $A$20:$AC$4900 and I don't get pivot details on the last 100 orders until I manually update the pivot. Isn't there a way I can make it just stick to $A$20:$AC$5000? I would've figured the dollar signs would do it, but they don't.

  2. #2
    Registered User
    Join Date
    08-30-2006
    Posts
    40
    Or if there's a way to just pivot the whole sheet from my headers down...sort of like using $A:$AC as the data, but starting on row 20 instead of all rows, that'd work fine too...

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    This link may help

    http://www.contextures.com/xlPivot01.html#Dynamic

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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