- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
- Private Sub Label1_Click()
- Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
- If a Is Nothing Then r = [A65536].End(xlUp).Row + 1 Else r = a.Row
- For i = 1 To 9
- Cells(r, i) = Controls("TextBox" & i).Text
- Next
- End Sub
- Private Sub Label2_Click()
- Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
- If a Is Nothing Then r = [A65536].End(xlUp).Row + 1 Else r = a.Row
- For i = 1 To 9
- Cells(r, i) = Controls("TextBox" & i).Text
- Next
- End Sub
- Private Sub Label3_Click()
- ThisWorkbook.Save
- End Sub
- Private Sub Label4_Click()
- ScrollBar1.Value = Application.Max(ScrollBar1.Value - 1, ScrollBar1.Min)
- End Sub
- Private Sub Label5_Click()
- ScrollBar1.Value = Application.Min(ScrollBar1.Value + 1, ScrollBar1.Max)
- If ScrollBar1.Value = ScrollBar1.Max Then ScrollBar1.Max = ScrollBar1.Max + 1
- End Sub
- Private Sub ScrollBar1_Change()
- r = ScrollBar1.Value
- For i = 1 To 9
- Controls("TextBox" & i) = Cells(r, i).Value
- Next
- End Sub
- Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
- Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
- If Not a Is Nothing Then
- MsgBox "¾Ç¸¹«½Æ"
- With TextBox1
- Cancel = True
- End With
- End If
- End Sub
- Private Sub UserForm_Initialize()
- r = [A65536].End(xlUp).Row
- With ScrollBar1
- .Min = 3
- .Max = r + 1
- End With
- End Sub
½Æ»s¥N½X ¦^´_ 1# ©P¤j°¶ |
|