News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Let the user check items in a grid in Excel VBA

Started by nandagopal, Nov 03, 2008, 08:00 PM

Previous topic - Next topic

nandagopal

When the user clicks on a row, the program toggles whether the first column contains an X.


' Toggle this row.
Private Sub flxAnimals_Click()
    If flxAnimals.TextMatrix(flxAnimals.Row, 0) = "X" Then
        flxAnimals.TextMatrix(flxAnimals.Row, 0) = ""
    Else
        flxAnimals.TextMatrix(flxAnimals.Row, 0) = "X"
    End If
End Sub


See the code for additional details.