Due to the problem with stacking pivot tables on top of each other I find myself using addition worksheets to create Pivot table reports.
Here is the question. How can I link this "FieldTable" to update multiply worksheets based on the Worksheet Change event?
I have 3 sheets:
The Calculator sheet has the Worksheet change event which updates the all the Command Center pivot tables from the FieldTable. I want to add the Breakdown sheet also. But have been unsuccessful whenever I add them. Everything is triggered from selecting the date on the Calculator sheet.
Here is the wonderful code from board member JS411, that use over and over, I just need to expand to multiply sheets.
The function that goes with this is:
CommandCenter
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
</tbody>
How do I get the The Calculator sheet has the Worksheet change event to update both the commandCenter and the Breakdown sheets piviot table.
Any suggestions
Thanks
Sorry about this distorted genie screenshot, I’m new to using it and can’t get rid of it so its tagging along. A2 is the date that triggers all the pivot table changes.
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="colspan: 2, align: right"]TransactionType
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="bgcolor: #C0C0C0, align: left"]7/2/2012
[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="align: center"]Enter
[/TD]
[TD="align: center"]Enter
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="bgcolor: #666699"]QueGroup
[/TD]
[TD="bgcolor: #666699, align: center"]Min
Requirement
[/TD]
[TD="bgcolor: #666699, align: center"]Hourly
Required to Meet
[/TD]
[TD="bgcolor: #993366, align: center"]Break
Down of Instructions
[/TD]
[TD="bgcolor: #C0C0C0, align: center"]No
of Pickers assigned
[/TD]
[TD="bgcolor: #FF0000, align: center"]Hourly
Picks Per Team Needed
[/TD]
[TD="bgcolor: #666699, align: center"]Meeting
Min Hours Time Required to Complete
[/TD]
[TD="bgcolor: #666699, align: center"]Department
[/TD]
[TD="bgcolor: #666699, align: center"]Dept
% Breakdown
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="bgcolor: #CCCCFF"]Bulk
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]114
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 19
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]231
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]2
[/TD]
[TD="bgcolor: #FF0000, align: right"]38
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]6.1
[/TD]
[TD="bgcolor: #CCCCFF"]Bulk
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]9%
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
[TD="bgcolor: #CCCCFF"]Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]326
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 54
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1132
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]5
[/TD]
[TD="bgcolor: #FF0000, align: right"]272
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]4.2
[/TD]
[TD="bgcolor: #CCCCFF"]Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]43%
[/TD]
[TD="bgcolor: #CACACA, align: center"]7
[/TD]
[TD="bgcolor: #CCCCFF"]Pallet Rack
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]162
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 27
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]876
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]5
[/TD]
[TD="bgcolor: #FF0000, align: right"]135
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]6.5
[/TD]
[TD="bgcolor: #CCCCFF"]Pallet Rack
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]34%
[/TD]
[TD="bgcolor: #CACACA, align: center"]8
[/TD]
[TD="bgcolor: #CCCCFF"]Turret
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]140
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 23
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]136
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1
[/TD]
[TD="bgcolor: #FF0000, align: right"]23
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]5.8
[/TD]
[TD="bgcolor: #CCCCFF"]Turret
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]5%
[/TD]
[TD="bgcolor: #CACACA, align: center"]9
[/TD]
[TD="bgcolor: #CCCCFF"]Upper Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]120
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 20
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]101
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1
[/TD]
[TD="bgcolor: #FF0000, align: right"]20
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]5.1
[/TD]
[TD="bgcolor: #CCCCFF"]Upper Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]4%
[/TD]
[TD="bgcolor: #CACACA, align: center"]10
[/TD]
[TD="bgcolor: #CCCCFF"]Yard
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]326
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 54
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]123
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1
[/TD]
[TD="bgcolor: #FF0000, align: right"]54
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]2.3
[/TD]
[TD="bgcolor: #CCCCFF"]Yard
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]5%
[/TD]
[TD="bgcolor: #CACACA, align: center"]11
[/TD]
[TD="bgcolor: #CCCCFF"]Tagged Slash Section
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]80
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 13
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]10
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]4
[/TD]
[TD="bgcolor: #FF0000, align: right"]53
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]0.2
[/TD]
[TD="bgcolor: #CCCCFF"]Tagged Slash Section
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]0%
[/TD]
[TD="bgcolor: #CACACA, align: center"]12
[/TD]
[TD="bgcolor: #993366, align: right"]2609
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]19
[/TD]
[TD="bgcolor: #FF0000, align: right"]596
[/TD]
[TD="bgcolor: #C0C0C0, align: center"][/TD]
[TD="bgcolor: #969696"][/TD]
[TD="bgcolor: #FFFF00, align: right"]100%
[/TD]
[TD="bgcolor: #CACACA, align: center"]13
[/TD]
[TD="bgcolor: #CACACA, align: center"]29
[/TD]
</tbody>
Excel
tables to the web >> Excel Jeanie
HTML 4
Here is the question. How can I link this "FieldTable" to update multiply worksheets based on the Worksheet Change event?
I have 3 sheets:
- Calculator
- Command Center
- Breakdown
The Calculator sheet has the Worksheet change event which updates the all the Command Center pivot tables from the FieldTable. I want to add the Breakdown sheet also. But have been unsuccessful whenever I add them. Everything is triggered from selecting the date on the Calculator sheet.
Here is the wonderful code from board member JS411, that use over and over, I just need to expand to multiply sheets.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim sDV_Address As String
Dim vFieldTable() As Variant
Dim i As Long
sDV_Address = "$A$2" 'Cell with date to select filter item.
' With ActiveSheet
With Sheets("CommandCenter")
If Intersect(Target, Range(sDV_Address)) Is Nothing Or _
Target.Cells.Count > 1 Then Exit Sub
On Error GoTo CleanUp
Application.EnableEvents = False
vFieldTable = Application.Transpose(Sheets("CommandCenter") _
.Range("FieldTable"))
For i = LBound(vFieldTable, 2) To UBound(vFieldTable, 2)
Call Filter_PivotField( _
pvtField:=.PivotTables(vFieldTable(1, i)) _
.PivotFields(vFieldTable(2, i)), _
vItems:=Target.Value)
Next i
End With
CleanUp:
Application.EnableEvents = True
End Sub
The function that goes with this is:
Code:
Public Function Single_Page_Filter(pvtField As PivotField, _
sValue As String) As Boolean
On Error GoTo ErrorHandler
With pvtField
.ClearAllFilters
.CurrentPage = sValue
End With
Single_Page_Filter = True
Exit Function
ErrorHandler:
Select Case Err.Description
Case "Application-defined or object-defined error"
MsgBox sValue & " has no data in " _
& pvtField.Parent.Name
Case Else
MsgBox Err.Number & ": " & Err.Description
End Select
With pvtField
.ClearAllFilters
.CurrentPage = "No Data Found"
End With
Single_Page_Filter = False
End Function
CommandCenter
W | X | Y | Z | AA | |
PivotTable1 | PROCESSING_DATE | commandCenter Sheet | |||
PivotTable2 | PROCESSING_DATE | commandCenter Sheet | |||
PivotTable3 | PROCESSING_DATE | commandCenter Sheet | |||
PivotTable4 | PROCESSING_DATE | Breakdown Sheet | |||
PivotTable5 | PROCESSING_DATE | Breakdown Sheet | |||
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
</tbody>
How do I get the The Calculator sheet has the Worksheet change event to update both the commandCenter and the Breakdown sheets piviot table.
Any suggestions
Thanks
Sorry about this distorted genie screenshot, I’m new to using it and can’t get rid of it so its tagging along. A2 is the date that triggers all the pivot table changes.
A | B | C | D | E | F | G | H | I | J | K | |
Process Date | |||||||||||
Time Result based on Number of Pickers | |||||||||||
<tbody>
[TD="bgcolor: #CACACA, align: center"]1
[/TD]
[TD="colspan: 2, align: right"]TransactionType
[/TD]
[TD="bgcolor: #CACACA, align: center"]2
[/TD]
[TD="bgcolor: #C0C0C0, align: left"]7/2/2012
[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #CACACA, align: center"]3
[/TD]
[TD="align: center"]Enter
[/TD]
[TD="align: center"]Enter
[/TD]
[TD="bgcolor: #CACACA, align: center"]4
[/TD]
[TD="bgcolor: #666699"]QueGroup
[/TD]
[TD="bgcolor: #666699, align: center"]Min
Requirement
[/TD]
[TD="bgcolor: #666699, align: center"]Hourly
Required to Meet
[/TD]
[TD="bgcolor: #993366, align: center"]Break
Down of Instructions
[/TD]
[TD="bgcolor: #C0C0C0, align: center"]No
of Pickers assigned
[/TD]
[TD="bgcolor: #FF0000, align: center"]Hourly
Picks Per Team Needed
[/TD]
[TD="bgcolor: #666699, align: center"]Meeting
Min Hours Time Required to Complete
[/TD]
[TD="bgcolor: #666699, align: center"]Department
[/TD]
[TD="bgcolor: #666699, align: center"]Dept
% Breakdown
[/TD]
[TD="bgcolor: #CACACA, align: center"]5
[/TD]
[TD="bgcolor: #CCCCFF"]Bulk
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]114
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 19
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]231
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]2
[/TD]
[TD="bgcolor: #FF0000, align: right"]38
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]6.1
[/TD]
[TD="bgcolor: #CCCCFF"]Bulk
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]9%
[/TD]
[TD="bgcolor: #CACACA, align: center"]6
[/TD]
[TD="bgcolor: #CCCCFF"]Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]326
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 54
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1132
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]5
[/TD]
[TD="bgcolor: #FF0000, align: right"]272
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]4.2
[/TD]
[TD="bgcolor: #CCCCFF"]Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]43%
[/TD]
[TD="bgcolor: #CACACA, align: center"]7
[/TD]
[TD="bgcolor: #CCCCFF"]Pallet Rack
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]162
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 27
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]876
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]5
[/TD]
[TD="bgcolor: #FF0000, align: right"]135
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]6.5
[/TD]
[TD="bgcolor: #CCCCFF"]Pallet Rack
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]34%
[/TD]
[TD="bgcolor: #CACACA, align: center"]8
[/TD]
[TD="bgcolor: #CCCCFF"]Turret
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]140
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 23
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]136
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1
[/TD]
[TD="bgcolor: #FF0000, align: right"]23
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]5.8
[/TD]
[TD="bgcolor: #CCCCFF"]Turret
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]5%
[/TD]
[TD="bgcolor: #CACACA, align: center"]9
[/TD]
[TD="bgcolor: #CCCCFF"]Upper Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]120
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 20
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]101
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1
[/TD]
[TD="bgcolor: #FF0000, align: right"]20
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]5.1
[/TD]
[TD="bgcolor: #CCCCFF"]Upper Mezzanine
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]4%
[/TD]
[TD="bgcolor: #CACACA, align: center"]10
[/TD]
[TD="bgcolor: #CCCCFF"]Yard
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]326
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 54
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]123
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]1
[/TD]
[TD="bgcolor: #FF0000, align: right"]54
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]2.3
[/TD]
[TD="bgcolor: #CCCCFF"]Yard
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]5%
[/TD]
[TD="bgcolor: #CACACA, align: center"]11
[/TD]
[TD="bgcolor: #CCCCFF"]Tagged Slash Section
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]80
[/TD]
[TD="bgcolor: #CCCCFF, align: right"] 13
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]10
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]4
[/TD]
[TD="bgcolor: #FF0000, align: right"]53
[/TD]
[TD="bgcolor: #CCCCFF, align: center"]0.2
[/TD]
[TD="bgcolor: #CCCCFF"]Tagged Slash Section
[/TD]
[TD="bgcolor: #CCCCFF, align: right"]0%
[/TD]
[TD="bgcolor: #CACACA, align: center"]12
[/TD]
[TD="bgcolor: #993366, align: right"]2609
[/TD]
[TD="bgcolor: #C0C0C0, align: right"]19
[/TD]
[TD="bgcolor: #FF0000, align: right"]596
[/TD]
[TD="bgcolor: #C0C0C0, align: center"][/TD]
[TD="bgcolor: #969696"][/TD]
[TD="bgcolor: #FFFF00, align: right"]100%
[/TD]
[TD="bgcolor: #CACACA, align: center"]13
[/TD]
[TD="bgcolor: #CACACA, align: center"]29
[/TD]
</tbody>
Excel
tables to the web >> Excel Jeanie
HTML 4