Results 1 to 3 of 3

Creat Pivot Table with a Macro

Threaded View

  1. #1
    Registered User
    Join Date
    09-14-2008
    Location
    Dubai
    Posts
    4

    Creat Pivot Table with a Macro

    I want to create a pivot table with a macro (using record macro and then create a pivot table) along with a button to run next time for different data. but after stoping when I am trying to run the macro I am getting this error
        ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
            "'Sheet2 (2)'!C1:C2").CreatePivotTable TableDestination:= _
            "'[GE.xls]Sheet2 (2)'!R1C4", TableName:="PivotTable1", _
            DefaultVersion:=xlPivotTableVersion10
    If some one can help me in this regard would be appreciated.
    I want to clear that I don't know much about VB. Pls. Help

    Rana
    Last edited by royUK; 09-15-2008 at 04:06 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. pivot table to ingore formulas in data table
    By nicko54 in forum Excel General
    Replies: 0
    Last Post: 07-10-2008, 10:30 AM
  2. Macro With A pivot Table
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2008, 04:53 PM
  3. macro with a pivot table where data is constantly added
    By mariusescu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2008, 02:38 PM
  4. Macro To Change Pivot Table Page Field
    By steve3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2007, 11:50 AM
  5. a pivot table report cannot overlap another pivot table report
    By judyh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2007, 12:59 AM

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