The following code turns off redrawing, makes several changes to the contents of ModHFGrid, and then turns on redrawing to show the results.
Dim i As Integer ' Freeze ModHFGrid to avoid flicker. ModHFGrid.Redraw =False ' Update ModHFGrid contents. For i =ModHFGrid1.FixedRows To ModHFGrid1.Rows - 1 ModHFGrid1.TextMatrix(i, 1) =GetName(i, 1) ModHFGrid1.TextMatrix(i, 2) =GetName(i, 2) Next ' Show results. ModHFGrid1.Redraw =True