Monday, December 8, 2008

Programmatically set border width of Excel cell

This MSDN article briefly explains how to do this: http://msdn.microsoft.com/en-us/library/bb209714.aspx

and here is an example that I am using in my code. It just sets the left border weight to thick for the cell located at 1,2. 

range = (Microsoft.Office.Interop.Excel.Range)wsheet.Cells[1, 2];
                                range.Borders[Microsoft.Office.Interop.Excel.XlBordersIndex.xlEdgeLeft].Weight = Microsoft.Office.Interop.Excel.XlBorderWeight.xlThick;

5 comments:

Anonymous said...

Acai berry properties health benefits
codeine allergy
Acai berry pocatello
codeine dose for cough
Acai berry supplement explained
codeine advantages
Acai berry slim
codeine effect on cough
Acai berry capsules
codeine addiction
Acai berry tea
online fiornal w codeine
Acai berry scam
benadryl codeine
Truth about acai berry
acetaminophen codeine elixir recreational
Advanced acai berry
codeine dosage dog
Acai berry ultra burn
promethazine codeine uses

Anonymous said...

You were mistaken, it is obvious.

Anonymous said...

At me a similar situation. Is ready to help.

Anonymous said...

The restaurants list with thousands of restaurants reviewed by visitors. http://restaurants-us.com/fl/Gainesville/Greater%20Gainesvelle%20Pizza/32609/

Anonymous said...

Footprints on the sand of time are not made by sitting down.