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

[µo°Ý] ½Ð±ÐUserForm¤º¦³¦h­ÓTextBox­n¦p¦ó²¤Æµ{§Ç(·PÁÂ)

[µo°Ý] ½Ð±ÐUserForm¤º¦³¦h­ÓTextBox­n¦p¦ó²¤Æµ{§Ç(·PÁÂ)

¥Ø«e¦³70­ÓTextBox¨Ã¥H²Ä70¬°1~69ªº²Ö­p
¿é¤JTextBox¨Ã«ö¤UEnter«á´N­p¤J¨ìTextBox70¤º¦]¦¹¦bµ{§Ç¤º¼g¤J¥H¤U69­Óµ{§Ç
½Ð±Ð¦p¦ó²¤Æ

¥Ø«e©|¶·¥[¤J
1.«ö¤U·Æ¹««á²MªÅTextBox¤º®e
2.«ö¤UÁä½L"©¹¤WÁä","©¹¤UÁä"
¦]¦¹µ{§Ç·|Åܱo«Üªø©Ò¥H¯S¨Ó½Ð±Ð²¤Æ¤è¦¡.....·P®¦
  1. Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
  2. If KeyCode = 13 Then TextBox70.Text = Val(TextBox70.Text) + Val(TextBox1.Text)
  3. End Sub

  4. Private Sub TextBox2_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
  5. If KeyCode = 13 Then TextBox70.Text = Val(TextBox70.Text) + Val(TextBox2.Text)
  6. End Sub
  7. .......
½Æ»s¥N½X

:loveliness: .....«D±`·PÁÂG¤j¼ö±¡À°¦£

³ø§i:«D±`¦¨¥\


TOP

¤SµL¨B¤F...¥u¦n¦A¦¸¨D§UG¤j
·PÁ¸U¤À

¥Ø«e·Q³]¸m
TextBox70¬°1¨ì23ªº²Ö­p
TextBox71¬°24¨ì46ªº²Ö­p
TextBox72¬°47¨ì69ªº²Ö­p
¤£ª¾­n¦p¦ó­×§ïµ{§Ç......ÁÂÁ±z

TOP

¥Ø«e¥u·|¼g¦¨³o¼Ë
  1.     spTB = Val(Replace(Class_TextBox.Name, "TextBox", ""))
  2.     With Class_TextBox
  3.         If KeyCode = 13 Then
  4.             If spTB < 24 Then
  5.                 .Parent.TextBox70.Text = Val(.Parent.TextBox70.Text) + Val(.Text)
  6.             ElseIf spTB > 23 And spTB < 47 Then
  7.                 .Parent.TextBox71.Text = Val(.Parent.TextBox71.Text) + Val(.Text)
  8.             Else
  9.                 .Parent.TextBox72.Text = Val(.Parent.TextBox72.Text) + Val(.Text)
  10.             End If
  11.         End If
  12.     End With
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD