Consulting

Results 1 to 2 of 2

Thread: Creat Pivot table by VBA

  1. #1

    Creat Pivot table by VBA

    Hi Dear,
    Please Help!
    I am biginner in VBA, I have a data, I want to filter the data from master sheet using user form and when click on submit button then filter data show from “A16 to Last Row and create a pivot table show in cell “A3”. This pivot table is based on below advanced filterd data.

    Error Showed on :
    Set PT = PTCACHE.CreatePivotTable(TABLEDESTINATION:=WSD.Cells(3, 1), TABLENAME:="PIVOTETABLE1")

    Run-Time error ‘1004’
    The PivotTable name is not valid. To Create a Pivot table Report,
    You must use data that is organised as a list with labled columns. if
    you are changing the name of pivot table field, you must type a new
    name for the filed.


    With Reagrsd & Thanks
    Neeraj Kumar Singh

    Contact No. 9540567486
    E-Mail : deleted

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can you post your workbook, it is a bit difficult without the data.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •