-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateUnitDash
142 lines (124 loc) · 7.38 KB
/
CreateUnitDash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Option Explicit
Sub CreateUnitDash()
'
' Select a unit, refresh, save as PDF
' Units included: 7_CP, 8CP, 9CP_PC, 9J CCU, 10CP, 11JONES, 14CP, 15CP, 16CP, 17_CP, 18J
'
Range("W3").Select
ActiveCell.FormulaR1C1 = "7_CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\7CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "8CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\8CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "9CP_PC"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\9CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "9J CCU"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\9J CCU.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "10CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\10CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "11JONES"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\11J.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "14CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\14CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "15CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\15CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "16CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\16CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "17_CP"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\17CP.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("W3").Select
ActiveCell.FormulaR1C1 = "18J"
ActiveWorkbook.RefreshAll
Worksheets("CLABSI_PIVOT").PivotTables("UNITCLAB24").PivotCache.Refresh
Worksheets("CAUTI_PIVOT").PivotTables("UNITCAU24").PivotCache.Refresh
Worksheets("CDI_PIVOT").PivotTables("UNITCDI24").PivotCache.Refresh
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\18J.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End Sub
Sub facdash()
ActiveWorkbook.RefreshAll
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"G:\IPAC\General\Department Operations\Data and Analysis\HAI Monthly Dashboards\Holding File for Dashboards\Hospital-Wide.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End Sub