Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default NumberFormat not working

In my C# interop code I'm setting the NumberFormat property in the following
manner:

((Range)workSheet.Cells[rowIndex, columnIndex]).NumberFormat = "#0.0000";

Unfortunately this format is not being used in the generated spreadsheet.

What's weird is that if go to the "Format Cells" dialog and select "Custom"
the format string I set in code has been added to the format list. It's as if
it's been defined, but not been applied to the actual cell.

Any ideas on what's going on?

-Thx
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NumberFormat danpt Excel Discussion (Misc queries) 3 May 20th 09 10:55 PM
numberformat? Jack Sons Excel Discussion (Misc queries) 3 September 4th 07 03:44 PM
NumberFormat? alex Excel Worksheet Functions 3 March 1st 07 09:12 PM
NumberFormat for date axis is not working Ian Hannah Excel Programming 3 August 23rd 06 12:55 AM
VBA NumberFormat Digit Excel Programming 1 January 30th 05 02:30 PM


All times are GMT +1. The time now is 10:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"