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


Using the code-

Dim newColl As New Collection

[mycode]

For Each Item In newColl
UserForm5.PPTListBox.AddItem Item
Next Item

I am adding dollar amounts (like 24.50 as a string) to the PPTListBox.
If the dollar amount is 24.00 then 24 shows in the listbox (24.50 shows
as 24.5). Is the problem with not formatting the "Item" when it is
added? How can I correct this? Thanks.


--
ricksimm
------------------------------------------------------------------------
ricksimm's Profile: http://www.excelforum.com/member.php...o&userid=21892
View this thread: http://www.excelforum.com/showthread...hreadid=377140

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default format question

maybe...

UserForm5.PPTListBox.AddItem format(Item,"0.00")



ricksimm wrote:

Using the code-

Dim newColl As New Collection

[mycode]

For Each Item In newColl
UserForm5.PPTListBox.AddItem Item
Next Item

I am adding dollar amounts (like 24.50 as a string) to the PPTListBox.
If the dollar amount is 24.00 then 24 shows in the listbox (24.50 shows
as 24.5). Is the problem with not formatting the "Item" when it is
added? How can I correct this? Thanks.

--
ricksimm
------------------------------------------------------------------------
ricksimm's Profile: http://www.excelforum.com/member.php...o&userid=21892
View this thread: http://www.excelforum.com/showthread...hreadid=377140


--

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
Format Question SITCFanTN Excel Discussion (Misc queries) 5 April 8th 10 10:28 PM
Format % Question Stan Atshuller Excel Worksheet Functions 3 October 2nd 06 08:54 PM
Format Question VegasBurger Excel Worksheet Functions 2 June 24th 06 06:34 PM
Format Question Please WILLIAM DAVIS Excel Discussion (Misc queries) 2 January 7th 05 01:45 AM
Format question Mike NG Excel Programming 1 July 4th 04 06:35 PM


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

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

About Us

"It's about Microsoft Excel"