Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2000 VBA - Removing leading zeroes from negatives

I have a cell with the following value

-0001,000,000

When I format it as currency, it keeps diplaying just as above. I wan
it to display as

($1,000,000)

Which is achived as soon as I apply the correct formatting and remov
the leading zeroes

I can set the formatting fine in a macro, but I am not sure how to ge
rid of the leading zeroes. Any help is appreciated.

Thanks,
Mar

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel 2000 VBA - Removing leading zeroes from negatives

Hi
how have you inserted this value (imported from a different source?)

--
Regards
Frank Kabel
Frankfurt, Germany


I have a cell with the following value

-0001,000,000

When I format it as currency, it keeps diplaying just as above. I

want
it to display as

($1,000,000)

Which is achived as soon as I apply the correct formatting and remove
the leading zeroes

I can set the formatting fine in a macro, but I am not sure how to

get
rid of the leading zeroes. Any help is appreciated.

Thanks,
Marc


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


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
Printing Leading Zeroes in Excel akkrug New Users to Excel 1 July 28th 08 09:43 PM
Leading Zeroes Melissa Excel Discussion (Misc queries) 3 October 11th 06 07:38 PM
Leading Zeroes Ken Excel Discussion (Misc queries) 1 October 7th 05 03:17 PM
CSV leading zeroes Tim_nol Excel Discussion (Misc queries) 2 December 28th 04 08:19 PM
How do I format data cells in Excel to keep leading zeroes? LennyD Setting up and Configuration of Excel 2 December 15th 04 10:42 PM


All times are GMT +1. The time now is 03:54 PM.

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"