Click here to Skip to main content
15,889,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. I have a problem in grouping data in excel using C#. I can only manage to group the first table. I have about 5 tables, repeated ones. I need to have those same tables having group the same data. Here's the code that i used:

objSheet.get_Range("A" + m_EndOfRow.ToString(), Type.Missing).get_Offset(1, 0).EntireRow.Group(Type.Missing, Type.Missing, Type.Missing, Type.Missing);

and this:
Excel.Range myrange = objSheet.Rows["2:6", Type.Missing] as Excel.Range;
myrange.Group(Type.Missing, Type.Missing, Type.Missing, Type.Missing);


Please advise. Thanks in advance.
Posted
Updated 8-Mar-10 14:38pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900