ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¤@­Óªí³æ½Ð¨D¨ó§U

b]¦^´_ 2# Hsieh

ÁÂÁª©¤j, °J¤ß·PÁÂ, ¥i¥H¹B¥Î, ¦ý­×§ï¸ê®Æ¦n¹³¤£¯à­×§ï, ¥tª©¤j, ­Y¼W³]¤@§R°£«ö¶s¥i¥H»ò.
hh.rar (12.36 KB)

TOP

  1. Private Sub Label1_Click()
  2. Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
  3. If a Is Nothing Then r = [A65536].End(xlUp).Row + 1 Else r = a.Row
  4. For i = 1 To 9
  5.    Cells(r, i) = Controls("TextBox" & i).Text
  6. Next
  7. End Sub

  8. Private Sub Label2_Click()
  9. Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
  10. If a Is Nothing Then r = [A65536].End(xlUp).Row + 1 Else r = a.Row
  11. For i = 1 To 9
  12.    Cells(r, i) = Controls("TextBox" & i).Text
  13. Next

  14. End Sub

  15. Private Sub Label3_Click()
  16. ThisWorkbook.Save
  17. End Sub

  18. Private Sub Label4_Click()
  19. ScrollBar1.Value = Application.Max(ScrollBar1.Value - 1, ScrollBar1.Min)
  20. End Sub

  21. Private Sub Label5_Click()
  22. ScrollBar1.Value = Application.Min(ScrollBar1.Value + 1, ScrollBar1.Max)
  23. If ScrollBar1.Value = ScrollBar1.Max Then ScrollBar1.Max = ScrollBar1.Max + 1
  24. End Sub

  25. Private Sub ScrollBar1_Change()
  26. r = ScrollBar1.Value
  27. For i = 1 To 9
  28. Controls("TextBox" & i) = Cells(r, i).Value
  29. Next
  30. End Sub

  31. Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
  32. Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
  33. If Not a Is Nothing Then
  34. MsgBox "¾Ç¸¹­«½Æ"
  35. With TextBox1
  36. Cancel = True
  37. End With
  38. End If
  39. End Sub

  40. Private Sub UserForm_Initialize()
  41. r = [A65536].End(xlUp).Row
  42. With ScrollBar1
  43. .Min = 3
  44. .Max = r + 1
  45. End With
  46. End Sub
½Æ»s¥N½X
¦^´_ 1# ©P¤j°¶
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD