Last active
July 25, 2016 05:12
-
-
Save toagit/9bab79afc82be32c9443524542ecb384 to your computer and use it in GitHub Desktop.
ActiveXコントローラーでタブ移動の実装サンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) | |
Call MoveNextController(KeyCode, TextBox2) | |
End Sub | |
Public Sub MoveNextController(ByVal KeyCode As MSForms.ReturnInteger, nextCtrl As Object) | |
If KeyCode = vbKeyTab Or KeyCode = vbKeyReturn Then | |
nextCtrl.Activate | |
End If | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment