+ Reply to Thread
Results 1 to 1 of 1

pivot table with macros

  1. #1
    Registered User
    Join Date
    04-24-2009
    Location
    delhi,india
    MS-Off Ver
    Excel 2003
    Posts
    37

    pivot table with macros

    i am trying to make a pivot table with macros

    in this attached sheet when i click on MDB button the macro should make a pivot table in SHEET5

    but it is not updating the table the next time i click the button

    there is also a clear button in sheet 5 to clear the pivot table but it also gives n error

    run time error 1004

    this is the macro code

    plzzz help


    Sub pivott()
    '
    ' pivott Macro
    ' Macro recorded 6/3/2009 by Anujj sethi
    '

    '
    Range("A3:F3").Select
    Range(Selection, Selection.End(xlDown)).Select
    ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
    "Sheet1!R3C1:R9C6").CreatePivotTable TableDestination:= _
    "'[fill rate1.xls]Sheet5'!R25C1", TableName:="PivotTable1", DefaultVersion _
    :=xlPivotTableVersion10
    End Sub
    Attached Files Attached Files
    Last edited by anuj_sethi1043; 06-03-2009 at 01:29 PM.

+ 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