Excel Crazy

A series Macro Examples

Activate Event

Activate event occur when workbook, worksheet, chart sheet or embedded chart is activated. Suppose you have worksheet with more than one pivot tables and every time you want you go to the worksheet, data to be refreshed. The below given code will help you to accomplish the task.

 

Private Sub Worksheet_Activate()
 
Dim Intcount as interger
For intcount = 1 to Activesheet.PivotTables.count
activesheet.PivotTables.Intcount.PivotCache.Refresh
Next Intcount
 
End Sub

December 31, 2011
top
 

© LOKESH PALIWAL 1987 - 2018

LOKESH@EXCELCRAZY[DOT]COM | 8826547882

Reporting Solutions | Data Consulting | Analytics Training

CONTACT US
close slider

Your Name (required)

Your Email (required)

Your Phone no. (required)

Your Message for us...

Skip to toolbar