Consulting

Results 1 to 3 of 3

Thread: Change Check box Value to Text

  1. #1
    VBAX Regular
    Joined
    Dec 2008
    Posts
    14
    Location

    Change Check box Value to Text

    I have a few Checkboxes on a form that populate cells on a excel sheet when selected. I would like to populate the cells with "" when Checkbox Value is "False" (Not Checked) and "Yes" when Checkbox Value is "True" (Checked)

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    With Worksheets("Sheet1").Range("A1")
        If Me.CheckBox1.Value Then
            .Value = "Yes"
        Else
             .Value = ""
        End If
    End With
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Dec 2008
    Posts
    14
    Location
    Thanks XLD, much appreciated.

Posting Permissions

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