View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Paul Paul is offline
external usenet poster
 
Posts: 661
Default Format to percent in msg box

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