Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to populate a Pivot Table using VBA code?

Hi,

I have a Pivot Table report that I am supposed to populate using the VBA code.
Can somebody please help me in writing the VBA code?

I am new to VBA as well as Pivot Table. So, please try to explain in detail.

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How to populate a Pivot Table using VBA code?

Hi,

if you have a Pivot Table you have some basic data in another table usually.
The Pivot Table gives you an overview, a concentration of data or a special
view of the basic data you have somewhere.
So ususally Pivot Tables don't get populated, you populate the basic data
table.

If data is added to the basic data table, or modified you may want to update
your Pivot Table to reflect the modified basic data.

You do this by going to the sheet with the Pivot Table, right click into the
Pivot Table and select "update data" or some similar text (I use german
Excel, so I don't know the exact english words).

If you want to automate this update of the Pivot Table with a macro you can
use the following piece of code:

ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh

You may have to modify "PivotTable1" to the name of your Pivot Table(s).

I hope this is going go get you started.



"I_need_the_reply_urgently" wrote:

Hi,

I have a Pivot Table report that I am supposed to populate using the VBA code.
Can somebody please help me in writing the VBA code?

I am new to VBA as well as Pivot Table. So, please try to explain in detail.

Thanks!!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using selected data from a pivot table to populate new list Roger on Excel Excel Programming 0 November 16th 07 07:58 PM
Populate pivot table with preselected items sourav.dhar Excel Programming 0 July 12th 06 01:11 PM
Populate Combobox with Pivot Table Data [email protected] Excel Programming 0 July 5th 06 05:02 PM
VBA Code for a pivot table to open database and to reference table current page Pete Straman Straman via OfficeKB.com Excel Programming 0 February 21st 05 03:57 AM


All times are GMT +1. The time now is 02:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"