+ Reply to Thread
Results 1 to 3 of 3

Visual Basic Question

Hybrid View

  1. #1
    lj
    Guest

    Visual Basic Question

    I have the following formula that I use in visual basic to update a
    pivot table from a pivot table. I want to alter the formula to update
    a pivot table from a set of data (that was brought in from a query to
    excel). How do I alter my formula below?

    Sheets("Commissions").Select
    ActiveSheet.PivotTableWizard SourceType:=xlPivotTable,
    SourceData:= _
    "[Munge_Report.xls]Data!Query"


  2. #2
    Barb Reinhardt
    Guest

    Re: Visual Basic Question

    Posted to Programming to get a faster reply.

    "lj" <lj@spu.edu> wrote in message
    news:1132600147.868091.262230@g14g2000cwa.googlegroups.com...
    >I have the following formula that I use in visual basic to update a
    > pivot table from a pivot table. I want to alter the formula to update
    > a pivot table from a set of data (that was brought in from a query to
    > excel). How do I alter my formula below?
    >
    > Sheets("Commissions").Select
    > ActiveSheet.PivotTableWizard SourceType:=xlPivotTable,
    > SourceData:= _
    > "[Munge_Report.xls]Data!Query"
    >




  3. #3
    Tom Ogilvy
    Guest

    Re: Visual Basic Question

    Why not turn on the macro recorder and try to perform the action manually.
    That should give you code specific to your situation.

    --
    Regards,
    Tom Ogilvy

    "Barb Reinhardt" <reply@tonewsgroup.com> wrote in message
    news:eZoWS6v7FHA.2012@TK2MSFTNGP14.phx.gbl...
    > Posted to Programming to get a faster reply.
    >
    > "lj" <lj@spu.edu> wrote in message
    > news:1132600147.868091.262230@g14g2000cwa.googlegroups.com...
    > >I have the following formula that I use in visual basic to update a
    > > pivot table from a pivot table. I want to alter the formula to update
    > > a pivot table from a set of data (that was brought in from a query to
    > > excel). How do I alter my formula below?
    > >
    > > Sheets("Commissions").Select
    > > ActiveSheet.PivotTableWizard SourceType:=xlPivotTable,
    > > SourceData:= _
    > > "[Munge_Report.xls]Data!Query"
    > >

    >
    >




+ 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