I am using the code given at this link to export the data from flex grid to excel
http://www.vbforums.com/showthread.php?t=393082
But it is showing an error at this line as Invalid Column value
.ColSel = .Cols – 1
Can someone please guide me how to fix the problem?