Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GEM GEM is offline
external usenet poster
 
Posts: 90
Default format listbox

hi
i have a list box which dispalys numbers such as 10.87542 how do i format
this so it only has 2 numbers after the decimal e.g. 10.87?
thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default format listbox

List boxes actually show text not numbers. So what you want to do is to
format the numbers that you are putting in the box, not format the listbox.

Listbox1.add format(10.123456, "#,##0.00")

--
HTH...

Jim Thomlinson


"gem" wrote:

hi
i have a list box which dispalys numbers such as 10.87542 how do i format
this so it only has 2 numbers after the decimal e.g. 10.87?
thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default format listbox

You have another response at your other post.

gem wrote:

hi
i have a list box which dispalys numbers such as 10.87542 how do i format
this so it only has 2 numbers after the decimal e.g. 10.87?
thanks


--

Dave Peterson
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
Listbox format Rich Young Excel Discussion (Misc queries) 0 June 30th 08 09:35 PM
format a listbox gem.g Excel Discussion (Misc queries) 1 June 21st 06 02:58 AM
How to format listbox gki[_7_] Excel Programming 2 July 25th 04 06:34 PM
format a listbox Walter[_3_] Excel Programming 1 April 25th 04 05:18 PM
listbox format... Tom Ogilvy Excel Programming 0 August 28th 03 11:45 PM


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