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

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

  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

¦^´_ 3# ©P¤j°¶
¼W¥[¤@­Ó§R°£µ{§Ç
  1. Private Sub Label15_Click()
  2. Set a = Columns("A:A").Find(TextBox1.Text, lookat:=xlWhole)
  3. If Not a Is Nothing Then a.Resize(, 9).Delete xlShiftUp
  4. End Sub
½Æ»s¥N½X
­n§R°£©Î­×§ï³£½Ð¨Ï¥Î¤W¤@µ§¡B¤U¤@µ§©Î±²¶bÅý¾Ç¸¹¬°ªÅ¥Õ«á¦A¿é¤J
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD