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 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
| Sub Rangecopy()
Feuil2.Range("A3").Value = Feuil1.Range("F8").Value
Feuil2.Range("B3").Value = Feuil1.Range("C3").Value
Feuil2.Range("C3").Value = Feuil1.Range("C4").Value
Feuil2.Range("D3").Value = Feuil1.Range("C5").Value
Feuil2.Range("E3").Value = Feuil1.Range("C8").Value
Feuil2.Range("F3").Value = Feuil1.Range("K10").Value
Feuil2.Range("G3").Value = Feuil1.Range("K13").Value
Feuil2.Range("H3").Value = Feuil1.Range("K15").Value
Feuil2.Range("I3").Value = Feuil1.Range("K19").Value
Feuil2.Range("J3").Value = Feuil1.Range("K20").Value
Feuil2.Range("K3").Value = Feuil1.Range("K22").Value
Feuil2.Range("L3").Value = Feuil1.Range("K24").Value
Feuil2.Range("M3").Value = Feuil1.Range("K26").Value
Feuil2.Range("N3").Value = Feuil1.Range("K28").Value
Feuil2.Range("O3").Value = Feuil1.Range("K30").Value
Feuil2.Range("P3").Value = Feuil1.Range("K32").Value
Feuil2.Range("Q3").Value = Feuil1.Range("K34").Value
Feuil2.Range("R3").Value = Feuil1.Range("K36").Value
Feuil2.Range("S3").Value = Feuil1.Range("K38").Value
Feuil2.Range("T3").Value = Feuil1.Range("K40").Value
Feuil2.Range("U3").Value = Feuil1.Range("K42").Value
Feuil2.Range("V3").Value = Feuil1.Range("K44").Value
End Sub
Private Sub CommandButton1_Click()
Range("K10").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton1.BackColor = RGB(34, 177, 76)
CommandButton2.BackColor = RGB(240, 240, 240)
CommandButton3.BackColor = RGB(240, 240, 240)
End Sub
Private Sub CommandButton13_Click()
Range("K26").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton14.BackColor = RGB(240, 240, 240)
CommandButton15.BackColor = RGB(240, 240, 240)
CommandButton13.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton14_Click()
Range("K26").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton13.BackColor = RGB(240, 240, 240)
CommandButton15.BackColor = RGB(240, 240, 240)
CommandButton14.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton15_Click()
Range("K26").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton13.BackColor = RGB(240, 240, 240)
CommandButton14.BackColor = RGB(240, 240, 240)
CommandButton15.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton16_Click()
Range("K28").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton18.BackColor = RGB(240, 240, 240)
CommandButton17.BackColor = RGB(240, 240, 240)
CommandButton16.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton17_Click()
Range("K28").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton18.BackColor = RGB(240, 240, 240)
CommandButton16.BackColor = RGB(240, 240, 240)
CommandButton17.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton18_Click()
Range("K28").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton16.BackColor = RGB(240, 240, 240)
CommandButton17.BackColor = RGB(240, 240, 240)
CommandButton18.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton19_Click()
Range("K30").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton21.BackColor = RGB(240, 240, 240)
CommandButton20.BackColor = RGB(240, 240, 240)
CommandButton19.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton2_Click()
Range("K10").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton1.BackColor = RGB(240, 240, 240)
CommandButton2.BackColor = RGB(255, 0, 0)
CommandButton3.BackColor = RGB(240, 240, 240)
End Sub
Private Sub CommandButton20_Click()
Range("K30").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton21.BackColor = RGB(240, 240, 240)
CommandButton19.BackColor = RGB(240, 240, 240)
CommandButton20.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton21_Click()
Range("K30").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton19.BackColor = RGB(240, 240, 240)
CommandButton20.BackColor = RGB(240, 240, 240)
CommandButton21.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton22_Click()
Range("K32").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton23.BackColor = RGB(240, 240, 240)
CommandButton24.BackColor = RGB(240, 240, 240)
CommandButton22.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton23_Click()
Range("K32").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton22.BackColor = RGB(240, 240, 240)
CommandButton24.BackColor = RGB(240, 240, 240)
CommandButton23.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton24_Click()
Range("K32").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton23.BackColor = RGB(240, 240, 240)
CommandButton22.BackColor = RGB(240, 240, 240)
CommandButton24.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton25_Click()
Range("K34").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton27.BackColor = RGB(240, 240, 240)
CommandButton26.BackColor = RGB(240, 240, 240)
CommandButton25.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton26_Click()
Range("K34").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton27.BackColor = RGB(240, 240, 240)
CommandButton25.BackColor = RGB(240, 240, 240)
CommandButton26.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton27_Click()
Range("K34").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton25.BackColor = RGB(240, 240, 240)
CommandButton26.BackColor = RGB(240, 240, 240)
CommandButton27.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton28_Click()
Range("K36").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton30.BackColor = RGB(240, 240, 240)
CommandButton29.BackColor = RGB(240, 240, 240)
CommandButton28.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton29_Click()
Range("K36").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton30.BackColor = RGB(240, 240, 240)
CommandButton28.BackColor = RGB(240, 240, 240)
CommandButton29.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton3_Click()
Range("K10").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton1.BackColor = RGB(240, 240, 240)
CommandButton2.BackColor = RGB(240, 240, 240)
CommandButton3.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton30_Click()
Range("K36").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton28.BackColor = RGB(240, 240, 240)
CommandButton29.BackColor = RGB(240, 240, 240)
CommandButton30.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton31_Click()
Range("K38").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton33.BackColor = RGB(240, 240, 240)
CommandButton32.BackColor = RGB(240, 240, 240)
CommandButton31.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton32_Click()
Range("K38").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton33.BackColor = RGB(240, 240, 240)
CommandButton31.BackColor = RGB(240, 240, 240)
CommandButton32.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton33_Click()
Range("K38").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton31.BackColor = RGB(240, 240, 240)
CommandButton32.BackColor = RGB(240, 240, 240)
CommandButton33.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton34_Click()
Range("K40").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton36.BackColor = RGB(240, 240, 240)
CommandButton35.BackColor = RGB(240, 240, 240)
CommandButton34.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton35_Click()
Range("K40").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton36.BackColor = RGB(240, 240, 240)
CommandButton34.BackColor = RGB(240, 240, 240)
CommandButton35.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton36_Click()
Range("K40").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton34.BackColor = RGB(240, 240, 240)
CommandButton35.BackColor = RGB(240, 240, 240)
CommandButton36.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton37_Click()
Range("K42").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton39.BackColor = RGB(240, 240, 240)
CommandButton38.BackColor = RGB(240, 240, 240)
CommandButton37.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton38_Click()
Range("K42").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton39.BackColor = RGB(240, 240, 240)
CommandButton37.BackColor = RGB(240, 240, 240)
CommandButton38.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton39_Click()
Range("K42").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton37.BackColor = RGB(240, 240, 240)
CommandButton38.BackColor = RGB(240, 240, 240)
CommandButton39.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton4_Click()
Range("K20").Select
ActiveCell.FormulaR1C1 = "1"
CommandButton6.BackColor = RGB(240, 240, 240)
CommandButton5.BackColor = RGB(240, 240, 240)
CommandButton4.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton40_Click()
Range("K44").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton42.BackColor = RGB(240, 240, 240)
CommandButton41.BackColor = RGB(240, 240, 240)
CommandButton40.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton41_Click()
Range("K44").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton42.BackColor = RGB(240, 240, 240)
CommandButton40.BackColor = RGB(240, 240, 240)
CommandButton41.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton42_Click()
Range("K44").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton41.BackColor = RGB(240, 240, 240)
CommandButton40.BackColor = RGB(240, 240, 240)
CommandButton42.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton43_Click()
End Sub
Private Sub CommandButton44_Click()
Range("K12").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton44.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton45_Click()
Range("K14").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton45.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton5_Click()
Range("K20").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton6.BackColor = RGB(240, 240, 240)
CommandButton4.BackColor = RGB(240, 240, 240)
CommandButton5.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton6_Click()
Range("K20").Select
ActiveCell.FormulaR1C1 = "3"
CommandButton4.BackColor = RGB(240, 240, 240)
CommandButton5.BackColor = RGB(240, 240, 240)
CommandButton6.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton7_Click()
Range("K22").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton9.BackColor = RGB(240, 240, 240)
CommandButton8.BackColor = RGB(240, 240, 240)
CommandButton7.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton8_Click()
Range("K22").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton9.BackColor = RGB(240, 240, 240)
CommandButton7.BackColor = RGB(240, 240, 240)
CommandButton8.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton9_Click()
Range("K22").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton7.BackColor = RGB(240, 240, 240)
CommandButton8.BackColor = RGB(240, 240, 240)
CommandButton9.BackColor = RGB(34, 177, 76)
End Sub
Private Sub CommandButton10_Click()
Range("K24").Select
ActiveCell.FormulaR1C1 = "2"
CommandButton12.BackColor = RGB(240, 240, 240)
CommandButton11.BackColor = RGB(240, 240, 240)
CommandButton10.BackColor = RGB(255, 0, 0)
End Sub
Private Sub CommandButton11_Click()
Range("K24").Select
ActiveCell.FormulaR1C1 = "4"
CommandButton10.BackColor = RGB(240, 240, 240)
CommandButton12.BackColor = RGB(240, 240, 240)
CommandButton11.BackColor = RGB(255, 255, 0)
End Sub
Private Sub CommandButton12_Click()
Range("K24").Select
ActiveCell.FormulaR1C1 = "6"
CommandButton10.BackColor = RGB(240, 240, 240)
CommandButton11.BackColor = RGB(240, 240, 240)
CommandButton12.BackColor = RGB(34, 177, 76)
End Sub
Private Sub ToggleButton1_Click()
If ToggleButton1.Value Then
ToggleButton1.BackColor = RGB(34, 177, 76)
Else
ToggleButton1.BackColor = RGB(240, 240, 240)
End If
End Sub
Private Sub ToggleButton2_Click()
If ToggleButton2.Value Then
ToggleButton2.BackColor = RGB(34, 177, 76)
Else
ToggleButton2.BackColor = RGB(240, 240, 240)
End If
End Sub
Private Sub ToggleButton3_Click()
If ToggleButton3.Value Then
ToggleButton3.BackColor = RGB(34, 177, 76)
Else
ToggleButton3.BackColor = RGB(240, 240, 240)
End If
End Sub |
Partager