+ Reply to Thread
Results 1 to 2 of 2

Pivot Table Problem

  1. #1
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    Pivot Table Problem

    Hi,
    I have created a pivot table who holds ard 1000 rows of data, and i hv grouped them into ard 10 different divisions. so if i were to choose Div 1, then it will only reflect those rows from division 1.

    However what i require is that when i run the macro that creates this pivot table, it will automatically create 10 separate workbooks, 1 for each division, holding only the relevant data for that division? how do I write a vba code for this?

    aft this is achieved, how can i write save each workbook with a specific filename and adding a timestamp to the filename?

    pls advise.

  2. #2
    Registered User
    Join Date
    02-02-2005
    Posts
    51
    I'm trying to do

    Sub Choose()

    If ActiveSheet.PivotTables("PivotSheet").PivotFields("Division") = "ABC" Then
    MsgBox "Value is 1"
    End If

    End Sub

    But i get a error 1004. i believe my syntax of it is wrong. can anyone enlighten me on this?

+ 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