Consulting

Results 1 to 3 of 3

Thread: Pivot Chart Macro Problem In Excel

  1. #1
    VBAX Newbie
    Joined
    Sep 2012
    Posts
    2
    Location

    Pivot Chart Macro Problem In Excel

    Hi dears,

    I stuck in VBA code issue, where i am not able to run my VBA code on other workbooks.

    Please find Zip file which has 2 Excel files ,Format.xls & Testpurpose.xls

    Format.xls is my personal File where i have stored all macros to run on other workbooks.


    Please open Testpurpose.xls and run Macro Format_columns, it is working fine,

    after that run Macro Pivot_chart, here is the problem, i am not able to get the pivot table of existing workbook.
    it is always creating pivot table taking values of my personal file.
    Attached Files Attached Files

  2. #2
    VBAX Newbie
    Joined
    Sep 2012
    Posts
    2
    Location
    can anybody reply

  3. #3
    VBAX Tutor mohanvijay's Avatar
    Joined
    Aug 2010
    Location
    MADURAI
    Posts
    268
    Location
    Try this

    [vba]

    Set objTable = ActiveWorkbook.Sheets("Sheet1").PivotTableWizard

    [/vba]

    why don't you place the all the macros in "Test Purpose.xls"?

Posting Permissions

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