Code:
dim e as integer = 0
For e = 0 To yourdatagridname.RowCount - 1
If yourdatagridname.Rows(e).Cells(cellnumber).Value = "specificmodulecode" Then
'export the data you want here
end if
Next
specificmodulecode is the module code you want to search for
yourdatagridname is the name of the grid
cellnumber is the cell you want to search
Try that
Dudtrap