Results 1 to 4 of 4

Is it possible to have a command button click event autofill a textbox within a userform?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-25-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2010
    Posts
    142

    Is it possible to have a command button click event autofill a textbox within a userform?

    I'm attempting to use a command button to autofill a text box (both within the same userform) with a value. I'd also like to add functionality to allow for toggling to remove the value the command button entered in the first time. The command button click would also disable input into the text box unless the command button is clicked again. I just happen to be stuck on the very first part of this issue.

    Here's the code I was attempting to use but alas, no joy: (Command Button name is N/A and TexBox name is A1). I've attached a sample to make it easier.

    Private Sub NA1_Click()
        If NA1.Value = True Then
        A1.Value = "N/A"
        End If
    End Sub
    Any help would be greatly appreciated. Thanks in advance!

    -Orestees
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1