iEhohs DokuWiki

プログラミングや設定方法など、個人的なナレッジを残しておくWikiです。

ユーザ用ツール

サイト用ツール


excel:vba-form-only-number

フォームのテキストボックスの入力を数値に限定するVBA

Private Sub Object_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
    If Not Chr(KeyAscii) Like "[0-9]" Then
        KeyAscii = 0
    End If
End Sub
スポンサーリンク
excel/vba-form-only-number.txt · 最終更新: 2024/07/26 14:58 by shimehitsu14