The following code example places the names "James," "Nancy," and "Lisa" into the selected cells whenever the user selects a group of cells. 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_MouseUp (Button As Integer, _ Shift as Integer, X As Single, Y As Single) Dim myStr As String myStr ="James" + Chr(9) + "Nancy" + Chr(9) + "Lisa" ModHFGrid1.Clip =myStr End Sub