Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try
Sub iss() Dim totals As Single totals = 0.08 i = totals / 100 ' remove this line if it should display 8% total1 = Format(i, "0.00%") MsgBox "Your totals equal to " & total1 & ". Please make sure this equals 100%", vbInformation, "Totals" End Sub "Paul" wrote: Hi- I have a variable defined as a single. I am displaying in a msgbox dim totals as single totals = 0.08 msgbox "Your totals equal to " & totals & ". Please make sure this equals 100%", vbinformation, "Totals" How can I format variable totals so that it displays as a percentage in the msgbox? -- Thanks, Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom Format - Percent | Excel Discussion (Misc queries) | |||
How do I format a negative percent? | Excel Discussion (Misc queries) | |||
decimal & percent format | Excel Programming | |||
Percent Format without Percent Sign | Excel Programming | |||
Percent Format | Excel Programming |