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

[µo°Ý] ¤W¤@Äæ¡B¤U¤@Äæ«ç»ò³]­p?

[µo°Ý] ¤W¤@Äæ¡B¤U¤@Äæ«ç»ò³]­p?

§Ú·Q­n¥i¥H«ö¤U¤@­¶´N¤U¤@Äæ­×§ï¸ê®Æ
¨ì²Ä¤@Äæ´NMsgBox ("¸ê®Æ³Ì¤W¼h")
«ö¤W¤@­¶´N¤W¤@Äæ­×§ï¸ê®Æ
¨ì³Ì«á¤@Äæ¨S¦³¸ê®Æ´NMsgBox ("¨S¦³¸ê®Æ")

¥¼©R¦W.png
2019-7-18 22:27
  1. Private Sub CB1_Click()
  2. i = i - 1
  3. TB1.Text = xSh.Cells(i, 3)
  4. End Sub

  5. Private Sub CB2_Click()
  6. i = i + 1
  7. TB1.Text = xSh.Cells(i, 3)
  8. End Sub
  9. Private Sub CB3_Click()
  10. Set xSh = Sheets("¤u§@ªí1")
  11. 'Ū¨ú¸ê®Æ
  12. Dim i As Integer
  13. i = 4
  14. Do
  15. i = i + 1
  16. If xSh.Cells(i, 4) = "" Then Exit Do
  17. If TB1.Text = xSh.Cells(i, 3) Then
  18.     '¼t°Ó«È¤á¸ê®ÆTBox1~3
  19.     TB2.Text = xSh.Cells(i, 4)
  20.     TB3.Text = xSh.Cells(i, 5)
  21.     TB4.Text = xSh.Cells(i, 6)
  22.     TB5.Text = xSh.Cells(i, 7)
  23.     TB6.Text = xSh.Cells(i, 8)
  24. Exit Sub
  25. End If
  26. Loop
  27. End Sub
  28. Private Sub CB4_Click()
  29. Set xSh = Sheets("¤u§@ªí1")
  30. '­×§ï¸ê®Æ
  31. Dim i As Integer
  32. i = 4
  33. Do
  34. i = i + 1

  35. If xSh.Cells(i, 4) = "" Then Exit Do
  36. If TB1.Text = xSh.Cells(i, 3) Then
  37.   
  38.     '¼t°Ó«È¤á¸ê®ÆTBox1~3
  39.     xSh.Cells(i, 4) = TB2.Text
  40.     xSh.Cells(i, 5) = TB3.Text
  41.     xSh.Cells(i, 6) = TB4.Text
  42.     xSh.Cells(i, 7) = TB5.Text
  43.     xSh.Cells(i, 8) = TB6.Text

  44. Exit Sub
  45. End If
  46. Loop
  47. End Sub
½Æ»s¥N½X
test.rar (20.64 KB)
excel¾Ç²ß¤¤!¿v¥X¹Ú·Q
https://www.youtube.com/channel/UCPAiRNsHX3k_omp0YDgfDiA

°Ñ¦ÒÀÉ:
Xl0000605.rar (15.43 KB)

TOP

¦^´_ 2# ­ã´£³¡ªL

¤Ó»Å¤F¡A¤º®e­nªá¤@ÂI®É¶¡§l¦¬¡C
¢°¡D­ì¨Ó«Å§i¥i¥H¾ã­Óªí³æ¨Ï¥Î¡C
¢±¡D­ì¨Óªí³æªº¸ê®Æ¤]¥i¥H¥Î¢Ô¢Ý¢à¡@¦^°é¶ñ¤J¸ê®Æ¡C
ÁÂÁ¤j¤j¡C
excel¾Ç²ß¤¤!¿v¥X¹Ú·Q
https://www.youtube.com/channel/UCPAiRNsHX3k_omp0YDgfDiA

TOP

        ÀR«ä¦Û¦b : ¦Y­W¤F­W¡B­WºÉ¤Ü¨Ó¡A¨ÉºÖ¤FºÖ¡BºÖºÉ´d¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD