The following code places "Flex" into the current cell whenever the user clicks a cell. When the user double-clicks, it clears the ModHFGrid. To run the program, press F5.
Private Sub Form1_Load () ModHFGrid1.Rows =8 ModHFGrid1.Cols =5 End Sub Private Sub ModHFGrid1_Click () ' Put text in current cell. ModHFGrid1.Text ="Flex" End Sub Private Sub ModHFGrid1.DblClick () ModHFGrid1.Clear End Sub