|
Sub CommandButton1_单击()
'
' CommandButton1_单击 Macro
' 宏由 User 录制,时间: 2011-6-12
'
'
Range("A5:D33").Select
ActiveWindow.ScrollRow = 17
ActiveWindow.ScrollRow = 16
ActiveWindow.ScrollRow = 15
ActiveWindow.ScrollRow = 14
ActiveWindow.ScrollRow = 13
ActiveWindow.ScrollRow = 11
ActiveWindow.ScrollRow = 10
ActiveWindow.ScrollRow = 9
ActiveWindow.ScrollRow = 8
ActiveWindow.ScrollRow = 7
ActiveWindow.ScrollRow = 5
ActiveWindow.ScrollRow = 3
ActiveWindow.ScrollRow = 2
ActiveWindow.ScrollRow = 1
Range("A5:D33,E5:H33").Select
Range("E5").Activate
ActiveWindow.ScrollRow = 19
ActiveWindow.ScrollRow = 20
ActiveWindow.ScrollRow = 21
ActiveWindow.ScrollRow = 22
ActiveWindow.ScrollRow = 23
ActiveWindow.ScrollRow = 24
ActiveWindow.ScrollRow = 25
ActiveWindow.ScrollRow = 26
ActiveWindow.ScrollRow = 27
ActiveWindow.ScrollRow = 28
ActiveWindow.ScrollRow = 29
ActiveWindow.ScrollRow = 30
ActiveWindow.ScrollRow = 31
ActiveWindow.ScrollRow = 32
ActiveWindow.ScrollRow = 33
ActiveWindow.ScrollRow = 34
Range("A5:D33,E5:H33,A37:D61").Select
Range("A37").Activate
ActiveWindow.ScrollRow = 50
ActiveWindow.ScrollRow = 49
ActiveWindow.ScrollRow = 48
ActiveWindow.ScrollRow = 46
ActiveWindow.ScrollRow = 45
ActiveWindow.ScrollRow = 44
ActiveWindow.ScrollRow = 43
ActiveWindow.ScrollRow = 42
ActiveWindow.ScrollRow = 41
ActiveWindow.ScrollRow = 40
ActiveWindow.ScrollRow = 39
ActiveWindow.ScrollRow = 38
ActiveWindow.ScrollRow = 37
ActiveWindow.ScrollRow = 36
ActiveWindow.ScrollRow = 35
ActiveWindow.ScrollRow = 34
ActiveWindow.ScrollRow = 33
ActiveWindow.ScrollRow = 32
ActiveWindow.ScrollRow = 31
ActiveWindow.ScrollRow = 30
ActiveWindow.ScrollRow = 29
ActiveWindow.ScrollRow = 28
Range("A5:D33,E5:H33,A37:D61,E37:H61").Select
Range("E37").Activate
ActiveWindow.ScrollRow = 54
ActiveWindow.ScrollRow = 55
ActiveWindow.ScrollRow = 56
ActiveWindow.ScrollRow = 57
ActiveWindow.ScrollRow = 58
ActiveWindow.ScrollRow = 59
ActiveWindow.ScrollRow = 60
ActiveWindow.ScrollRow = 61
ActiveWindow.ScrollRow = 62
ActiveWindow.ScrollRow = 63
ActiveWindow.ScrollRow = 64
ActiveWindow.ScrollRow = 65
ActiveWindow.ScrollRow = 66
ActiveWindow.ScrollRow = 67
Range("A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81").Select
Range("E70").Activate
ActiveWindow.ScrollRow = 68
ActiveWindow.ScrollRow = 69
ActiveWindow.ScrollRow = 70
ActiveWindow.ScrollRow = 71
ActiveWindow.ScrollRow = 72
ActiveWindow.ScrollRow = 73
ActiveWindow.ScrollRow = 74
ActiveWindow.ScrollRow = 75
ActiveWindow.ScrollRow = 76
ActiveWindow.ScrollRow = 77
ActiveWindow.ScrollRow = 78
ActiveWindow.ScrollRow = 79
ActiveWindow.ScrollRow = 80
Range("A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94").Select
Range("A90").Activate
ActiveWindow.ScrollRow = 81
ActiveWindow.ScrollRow = 82
ActiveWindow.ScrollRow = 83
ActiveWindow.ScrollRow = 84
ActiveWindow.ScrollRow = 85
ActiveWindow.ScrollRow = 86
ActiveWindow.ScrollRow = 87
ActiveWindow.ScrollRow = 88
ActiveWindow.ScrollRow = 89
ActiveWindow.ScrollRow = 90
ActiveWindow.ScrollRow = 91
ActiveWindow.ScrollRow = 92
ActiveWindow.ScrollRow = 93
ActiveWindow.ScrollRow = 94
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112" _
).Select
Range("E111").Activate
ActiveWindow.ScrollRow = 95
ActiveWindow.ScrollRow = 96
ActiveWindow.ScrollRow = 97
ActiveWindow.ScrollRow = 98
ActiveWindow.ScrollRow = 99
ActiveWindow.ScrollRow = 100
ActiveWindow.ScrollRow = 101
ActiveWindow.ScrollRow = 102
ActiveWindow.ScrollRow = 103
ActiveWindow.ScrollRow = 104
ActiveWindow.ScrollRow = 105
ActiveWindow.ScrollRow = 107
ActiveWindow.ScrollRow = 106
ActiveWindow.ScrollRow = 107
ActiveWindow.ScrollRow = 108
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124" _
).Select
Range("E116").Activate
ActiveWindow.ScrollRow = 110
ActiveWindow.ScrollRow = 111
ActiveWindow.ScrollRow = 112
ActiveWindow.ScrollRow = 113
ActiveWindow.ScrollRow = 114
ActiveWindow.ScrollRow = 115
ActiveWindow.ScrollRow = 116
ActiveWindow.ScrollRow = 117
ActiveWindow.ScrollRow = 118
ActiveWindow.ScrollRow = 119
ActiveWindow.ScrollRow = 120
ActiveWindow.ScrollRow = 121
ActiveWindow.ScrollRow = 122
ActiveWindow.ScrollRow = 123
ActiveWindow.ScrollRow = 124
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156" _
).Select
Range("A130").Activate
ActiveWindow.ScrollRow = 133
ActiveWindow.ScrollRow = 132
ActiveWindow.ScrollRow = 131
ActiveWindow.ScrollRow = 130
ActiveWindow.ScrollRow = 129
ActiveWindow.ScrollRow = 128
ActiveWindow.ScrollRow = 127
ActiveWindow.ScrollRow = 126
ActiveWindow.ScrollRow = 125
ActiveWindow.ScrollRow = 124
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142" _
).Select
Range("E138").Activate
ActiveWindow.ScrollRow = 125
ActiveWindow.ScrollRow = 126
ActiveWindow.ScrollRow = 127
ActiveWindow.ScrollRow = 126
ActiveWindow.ScrollRow = 127
ActiveWindow.ScrollRow = 128
ActiveWindow.ScrollRow = 129
ActiveWindow.ScrollRow = 130
ActiveWindow.ScrollRow = 131
ActiveWindow.ScrollRow = 132
ActiveWindow.ScrollRow = 133
ActiveWindow.ScrollRow = 134
ActiveWindow.ScrollRow = 135
ActiveWindow.ScrollRow = 136
ActiveWindow.ScrollRow = 137
ActiveWindow.ScrollRow = 138
ActiveWindow.ScrollRow = 139
ActiveWindow.ScrollRow = 140
ActiveWindow.ScrollRow = 141
ActiveWindow.ScrollRow = 142
ActiveWindow.ScrollRow = 143
ActiveWindow.ScrollRow = 144
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156" _
).Select
Range("E146").Activate
ActiveWindow.ScrollRow = 145
ActiveWindow.ScrollRow = 146
ActiveWindow.ScrollRow = 147
ActiveWindow.ScrollRow = 148
ActiveWindow.ScrollRow = 149
ActiveWindow.ScrollRow = 150
ActiveWindow.ScrollRow = 151
ActiveWindow.ScrollRow = 153
ActiveWindow.ScrollRow = 154
ActiveWindow.ScrollRow = 155
ActiveWindow.ScrollRow = 156
ActiveWindow.ScrollRow = 157
ActiveWindow.ScrollRow = 158
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166" _
).Select
Range("E160").Activate
ActiveWindow.ScrollRow = 159
ActiveWindow.ScrollRow = 160
ActiveWindow.ScrollRow = 161
ActiveWindow.ScrollRow = 162
ActiveWindow.ScrollRow = 163
ActiveWindow.ScrollRow = 165
ActiveWindow.ScrollRow = 166
ActiveWindow.ScrollRow = 167
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179" _
).Select
Range("E170").Activate
ActiveWindow.ScrollRow = 168
ActiveWindow.ScrollRow = 169
ActiveWindow.ScrollRow = 170
ActiveWindow.ScrollRow = 171
ActiveWindow.ScrollRow = 170
ActiveWindow.ScrollRow = 171
ActiveWindow.ScrollRow = 172
ActiveWindow.ScrollRow = 171
ActiveWindow.ScrollRow = 172
ActiveWindow.ScrollRow = 173
ActiveWindow.ScrollRow = 174
ActiveWindow.ScrollRow = 175
ActiveWindow.ScrollRow = 176
ActiveWindow.ScrollRow = 177
ActiveWindow.ScrollRow = 178
ActiveWindow.ScrollRow = 179
ActiveWindow.ScrollRow = 180
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179,A183:D185,E183:H185,A189:H190" _
).Select
Range("A189").Activate
ActiveWindow.ScrollRow = 181
ActiveWindow.ScrollRow = 182
ActiveWindow.ScrollRow = 183
ActiveWindow.ScrollRow = 184
ActiveWindow.ScrollRow = 185
ActiveWindow.ScrollRow = 186
ActiveWindow.ScrollRow = 187
ActiveWindow.ScrollRow = 188
ActiveWindow.ScrollRow = 189
ActiveWindow.ScrollRow = 190
ActiveWindow.ScrollRow = 191
ActiveWindow.ScrollRow = 192
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179,A183:D185,E183:H185,A189:H190,A197:D216" _
).Select
Range("A197").Activate
ActiveWindow.ScrollRow = 199
ActiveWindow.ScrollRow = 198
ActiveWindow.ScrollRow = 197
ActiveWindow.ScrollRow = 198
ActiveWindow.ScrollRow = 197
ActiveWindow.ScrollRow = 196
ActiveWindow.ScrollRow = 195
ActiveWindow.ScrollRow = 194
ActiveWindow.ScrollRow = 193
ActiveWindow.ScrollRow = 192
ActiveWindow.ScrollRow = 191
ActiveWindow.ScrollRow = 190
ActiveWindow.ScrollRow = 189
ActiveWindow.ScrollRow = 188
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179,A183:D185,E183:H185,A189:H190,A197:D216,E197:H205" _
).Select
Range("E197").Activate
ActiveWindow.ScrollRow = 189
ActiveWindow.ScrollRow = 190
ActiveWindow.ScrollRow = 191
ActiveWindow.ScrollRow = 192
ActiveWindow.ScrollRow = 194
ActiveWindow.ScrollRow = 195
ActiveWindow.ScrollRow = 196
ActiveWindow.ScrollRow = 197
ActiveWindow.ScrollRow = 198
ActiveWindow.ScrollRow = 199
ActiveWindow.ScrollRow = 200
ActiveWindow.ScrollRow = 201
ActiveWindow.ScrollRow = 202
ActiveWindow.ScrollRow = 203
ActiveWindow.ScrollRow = 204
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179,A183:D185,E183:H185,A189:H190,A197:D216,E197:H205" _
).Select
Range("E209").Activate
ActiveWindow.ScrollRow = 205
ActiveWindow.ScrollRow = 206
ActiveWindow.ScrollRow = 207
ActiveWindow.ScrollRow = 208
ActiveWindow.ScrollRow = 209
ActiveWindow.ScrollRow = 210
ActiveWindow.ScrollRow = 211
ActiveWindow.ScrollRow = 212
ActiveWindow.ScrollRow = 211
Range( _
"A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179,A183:D185,E183:H185,A189:H190,A197:D216,E197:H205" _
).Select
Range("E220").Activate
ActiveWindow.ScrollRow = 212
ActiveWindow.ScrollRow = 213
ActiveWindow.ScrollRow = 214
ActiveWindow.ScrollRow = 215
ActiveWindow.ScrollRow = 216
ActiveWindow.ScrollRow = 217
ActiveWindow.ScrollRow = 218
ActiveWindow.ScrollRow = 219
ActiveWindow.ScrollRow = 220
ActiveWindow.ScrollRow = 221
Union(Range( _
"A232:D235,E232:H235,A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179,E170:H179,A183:D185,E183:H185,A189:H190" _
), Range("A225:D228,E227:H228")).Select
Range("E232").Activate
ActiveWindow.ScrollRow = 222
ActiveWindow.ScrollRow = 223
ActiveWindow.ScrollRow = 224
ActiveWindow.ScrollRow = 225
ActiveWindow.ScrollRow = 226
ActiveWindow.ScrollRow = 227
ActiveWindow.ScrollRow = 228
ActiveWindow.ScrollRow = 229
ActiveWindow.ScrollRow = 230
ActiveWindow.ScrollRow = 231
ActiveWindow.ScrollRow = 232
Union(Range( _
"A232:D235,E232:H235,A239:D242,E239:H242,A246:D248,E246:H248,A5:D33,E5:H33,A37:D61,E37:H61,A70:D81,E70:H81,A85:H86,A90:H94,A98:D101,A105:D112,E98:H107,E111:H112,A116:D124,E116:H124,A130:D156,E130:H134,E138:H142,E146:H156,A160:D166,E160:H166,A170:D179" _
), Range("E197:H205,E209:H216,A220:D221,E220:H223,A225:D228,E227:H228")).Select
Range("E246").Activate
Selection.ClearContents
End Sub
报表.zip
(172.06 KB, 下载次数: 3)
[ 本帖最后由 蓝天白水 于 2011-7-14 10:56 编辑 ] |
|