Hello
I am getting a "COMExecption unhandeld" at this line of code...
EndRows is defined as the last rowCode:oSheet.Range("A2", "G" & EndRows).Sort("A2", Excel.XlSortOrder.xlAscending, "B2", Excel.XlSortOrder.xlAscending)
oSheet as excel worksheet
Trying to ignore the first row (title) therefore the range is A2 => G....
And trying to sort on two columns, A and B....
What am i doing wrong ?
Thanks !




Reply With Quote