Manivannangnnavel94
New Member
- Joined
- Jan 23, 2020
- Messages
- 4
- Office Version
- 2010
- Platform
- Windows
Hi,
I have created a Pivot Create Code which worked Correctly. But Now the Data i am trying to use the code is of high columns and rows.
Is there any solution on correcting this code.
which must work in larger data too.
I have created a Pivot Create Code which worked Correctly. But Now the Data i am trying to use the code is of high columns and rows.
Is there any solution on correcting this code.
which must work in larger data too.
VBA Code:
Sub EGPivotCreate(DataSourceSheetName As String, DataSourceAddress As String, _
DestinationSheetName As String, DestinationAddress As String, PivotName As String)
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
Worksheets(DataSourceSheetName).Range(DataSourceAddress)). _
CreatePivotTable TableDestination:=Worksheets(DestinationSheetName).Range(DestinationAddress), _
TableName:=PivotName
End Sub