Advertisement
Guest User

kod Andzia

a guest
Mar 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Private Sub CommandButton1_Click()
  2. With CommandButton1
  3. .BackColor = vbGreen
  4. .Caption = "Dobrze"
  5. End With
  6. Worksheets("Arkusz2").Activate
  7. ActiveCell.Interior.ColorIndex = 4
  8. End Sub
  9.  
  10. Private Sub CommandButton2_Click()
  11. With CommandButton2
  12. .BackColor = RGB(255, 102, 0)
  13. .Caption = "Średnio"
  14. End With
  15. Worksheets("Arkusz2").Activate
  16. ActiveCell.Interior.ColorIndex = 46
  17. End Sub
  18.  
  19. Private Sub CommandButton3_Click()
  20. With CommandButton3
  21. .BackColor = vbRed
  22. .Caption = "Źle"
  23. End With
  24. Worksheets("Arkusz2").Activate
  25. ActiveCell.Interior.ColorIndex = 3
  26. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement