Setting a cell's format using Excel 2007 Interop and C#

Posted by CVertex on Stack Overflow See other posts from Stack Overflow or by CVertex
Published on 2009-03-03T02:54:57Z Indexed on 2010/05/10 3:08 UTC
Read the original article Hit count: 351

I'm using the office 2007 interop assemblies to create some excel spreadsheets.

There are plenty of questions on here about getting started and MSDN contains heaps of articles, like this one.

The API is funky, and sometimes a bit confusing.

When I set a value of a cell, is there a way to set it's format? I'd like to mark particular fields as Date's so my customer can run excel macros on them. Also, numbers would be useful.

Thanks!

© Stack Overflow or respective owner

Related posts about excel-2007

Related posts about office-interop