Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

MsgBoxを使って Excel UserForm Events の Test 2009/02/28

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,298
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 27, 2009

Excel UserForm に

ボタンを1つ
テキストボックスを2つ貼り

貼ったコントロールが持っているイベントにプログラムを書く
そんな話と
イベントのタイミングが知りたい時は、
MsgBox関数を使って、デバックしてみては?
そんなお話です。

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (ken3video)

  • 次に、イベントの発生順を知りたくて、メッセージボックスを入れ­ました。

    Private Sub TextBox2_Change() MsgBox "TextBox2_Change"

    End Sub

    Private Sub TextBox2_Enter() MsgBox "TextBox2_Enter"

    End Sub

    Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean) MsgBox "TextBox2_Exit"

    End Sub

    これだと、_Changeのイベントでメッセージボックスを読ん­でしまい、テストになりません。

  • イベントに対して処理を書く

    Private Sub CommandButton1_Click() Unload Me

    End Sub

    ここでは、ボタンを押したら(クリックしたら)、

    フォームを閉じる

see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more