Advanced Excel Tips-Macros/VBA

Advanced Excel Tips-Macros/VBA

Share

Advanced Excel Formulas,VBA Macro Code/ Automation
https://lgtechtipstricks.blogspot.com/

28/11/2020

Q : Refresh All Pivot Tables
Ans :
Sub RefreshAllPivots()
Dim pt As PivotTable
For Each pt In ActiveWorkbook.PivotTables pt.RefreshTable
Next pt
End Sub

28/11/2020

Q : Resize All Charts in a Worksheet
Ans :
Sub Resize_Charts()
Dim i As Integer
For i = 1 To ActiveSheet.ChartObjects.Count With ActiveSheet.ChartObjects(i) Width = 300 Height = 200
End With
Next i
End Sub

Want your school to be the top-listed School/college in Pune?
Click here to claim your Sponsored Listing.

Category

Address


Pune