+ Reply to Thread
Results 1 to 3 of 3

Sort Page Field With VBA

  1. #1
    Registered User
    Join Date
    03-31-2005
    Posts
    11

    Sort Page Field With VBA

    Hi all,

    I have several pivot table templates built, and had to add in additional items to the page field. They are now out of order (they need to be alphabetical). If I was starting from scratch, I would just pull the pagefield down, sort it, and add it back to the top. However, since the entire page is built with formulas and formatting and such, I need to use code.

    SO! Here's what I have so far:

    Please Login or Register  to view this content.
    The problem with this code is that is sorts all pivot fields, and I need it to just sort "Geographies." There is 1 "Geographies" pf per sheet and there are number of sheets in the workbook. I can't figured out how to make the pf specific to "Geographies." Hopefully this makes sense - any help would be appreciated!!

    Thanks,
    Jill
    Last edited by delecto; 07-14-2009 at 08:34 PM. Reason: Question answered

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Sort Page Field With VBA

    Jill

    Maybe I'm missing something but would this work?

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    03-31-2005
    Posts
    11

    Re: Sort Page Field With VBA

    rylo - you are awesome - that's exactly what I was looking for. I know it was such a simple line, but my VBA skills are somewhat ... inconsistent. Thanks for taking the time to answer my question!

+ 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