Archive

Posts Tagged ‘VSTO’

Figuring out where you are in an Excel 2007 range.

December 9th, 2009 Comments off

Ever tried to debug a loop inside a listObject.Range? Use get_Address(). It makes the process a lot easier.

Code: Read more…

Tags: ,

Setting an Excel cell background color

December 9th, 2009 Comments off

Description:
Set a cell’s solid background color using a single user-defined color.

Code: Read more…

Tags: , ,

Setting an Excel 2007 gradient background

December 9th, 2009 Comments off

Description:
Set a cell’s background color to a vertical gradient using two user-defined colors.

Code: Read more…

Tags: , , ,

Scaling an Excel worksheet

December 9th, 2009 Comments off

Description:
WinForm controls placed in a worksheet while it is not at 100% will be positioned incorrectly. Here’s a simple workaround to change the zoom to 100% then revert to the previous setting.

Code: Read more…

Tags: , ,