Nicholas Level: Big Cheese Registered: 31-08-2002 Posts: 22
Percentage in listbox
Hi. I'm trying to get percentages from 1% to 100% to show in a LISTBOX but what is happening is at .81 to 100 percent, the number is looking like this: 810000001 and so on for .82, .83... Below is the code I am using and need help. How someone can help. Thanks for efforts all. Nick
For intper = 0.01 To 1 Step 0.01
List5.AddItem IIf(intper > 0, Trim(Str(intper)), "" & Trim(Str(intper)))
Next intper