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
| Private Sub CommandButton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Me.Shapes("TipText").Visible = True
End Sub
Private Sub Label1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Me.Shapes("TipText").Visible = False
End Sub
Private Sub CommandButton1_Click()
Me.Shapes("TipText").Visible = False
End Sub
'The "Couche" en plus LOL......................
Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Dim L As Byte, C As Byte
Me.Image1.Copy
Randomize
L = Int((30 * Rnd) + 1)
C = Int((20 * Rnd) + 1)
Paste Destination:=ActiveSheet.Cells(L, C)
End Sub
Private Sub Label2_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Dim LOL As OLEObject
For Each LOL In Me.OLEObjects
If LOL.progID = "Forms.Image.1" Then
If LOL.Name <> "Image1" Then
LOL.Delete
End If
End If
Next LOL
End Sub
'@+Thierry 03/03/2005 |
Partager