Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invalid Number Format in Excel 10

I want to display "N/C" (meaning "No Charge") to appear when the valu
of a numeric cell is zero.

In Excel 9, this works fine: Range("B20").NumberFormat
"$#,###;($#,###);N\/C"

In Excel 10, this statement causes a run-time error 1004 (Unable to se
property)

I also tried: Range("B20").NumberFormat = "$#,###;($#,###);NC" bu
without success, so it's not the slash that's causing the problem.

Any suggestions?

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Invalid Number Format in Excel 10

Works fine in MacXL10. Are you sure the worksheet isn't protected?

In article ,
hzrabbie wrote:

I want to display "N/C" (meaning "No Charge") to appear when the value
of a numeric cell is zero.

In Excel 9, this works fine: Range("B20").NumberFormat =
"$#,###;($#,###);N\/C"

In Excel 10, this statement causes a run-time error 1004 (Unable to set
property)

I also tried: Range("B20").NumberFormat = "$#,###;($#,###);NC" but
without success, so it's not the slash that's causing the problem.

Any suggestions?

Thanks!

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
Invalid format Hermes[_2_] Excel Discussion (Misc queries) 0 January 15th 08 02:32 PM
File format invalid ranvin56 Excel Discussion (Misc queries) 1 January 8th 08 03:08 PM
invalid file format error SteveDB1 Excel Discussion (Misc queries) 3 December 14th 07 11:40 PM
Invalid cell format in Excel MichaelRobert Excel Discussion (Misc queries) 4 November 8th 07 03:08 PM
error/ file format invalid Daisy1 Excel Discussion (Misc queries) 3 January 20th 06 02:28 AM


All times are GMT +1. The time now is 11:19 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"