1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Dim t As Variant, Y As Byte
Private Sub UserForm_initialize()
t = Range("c6:j" & Range("c65536").End(xlUp).Row): c1.List = t
End Sub
Private Sub cmd2_Click()
For Y = 1 To 8: Cells(c1.ListIndex + 6, Y + 2) = Controls("T" & Y).Value: Next Y: Beep
Unload Me: UserForm1.Show
End Sub
Private Sub c1_Click()
For Y = 1 To 8: Controls("T" & Y) = c1.List(c1.ListIndex, Y - 1): Next Y
End Sub
Private Sub cmd1_Click()
Unload Me
End Sub
Private Sub c1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
c1.SetFocus: c1.DropDown
End Sub |
Partager