Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Code as follows;

Excel.Range BorderRAnge;
BorderRAnge.Borders[Excel.XlBordersIndex.xlEdgeBottom];
BorderRAnge.Borders[Excel.XlBordersIndex.xlEdgeRight];
BorderRAnge.Borders[Excel.XlBordersIndex.xlEdgeLeft];
BorderRAnge.Borders[Excel.XlBordersIndex.xlEdgeTop];

but when i run error shows as follows;
Only assignment, call, increment, decrement, and new object expressions can be used as a statement

from my code what is the mistake.
i want to set border for each row in excel.

it is windows application.

using c sharp.
Posted
Comments
CHill60 5-Feb-13 5:43am    
You should really have replied to JemiM's solution to the question you posted earlier as this is his code not yours and he may have been able to help

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