Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Format Value Displayed in Msb Box
How do I format the value returned in a Message box as €0,000 - if in
thousands or €000 - if value is only in hundreds. Relevant cell is AI2 With Worksheets("Order") If .Range("AJ2").Value = 1 Then Answer = MsgBox("You Order Totals " & Range("AI2").Value & _ "If this is correct click ""Yes"", if not " & _ "Click ""No"" and amend as necessady", vbYesNo) If Answer = vbNo Then Application.Goto Range("A22"), True Range("G39").Activate Exit Sub Else End If End If End With |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Format Value Displayed in Msb Box
Seanie,
Try this Sub nn() With Worksheets("Order") If .Range("AJ2").Value = 1 Then Answer = MsgBox("You Order Totals " & Format(Range("AI2").Value, " ‚¬#,###") & " If this is correct click ""Yes"", if not " & "Click ""No"" and amend as necessady", vbYesNo) If Answer = vbNo Then Application.Goto Range("A22"), True Range("G39").Activate Exit Sub Else End If End If End With End Sub Mike "Seanie" wrote: How do I format the value returned in a Message box as ‚¬0,000 - if in thousands or ‚¬000 - if value is only in hundreds. Relevant cell is AI2 With Worksheets("Order") If .Range("AJ2").Value = 1 Then Answer = MsgBox("You Order Totals " & Range("AI2").Value & _ "If this is correct click ""Yes"", if not " & _ "Click ""No"" and amend as necessady", vbYesNo) If Answer = vbNo Then Application.Goto Range("A22"), True Range("G39").Activate Exit Sub Else End If End If End With |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Format Value Displayed in Msb Box
.... & format(range("ai2").value, "#,##0") & ...
Seanie wrote: How do I format the value returned in a Message box as €0,000 - if in thousands or €000 - if value is only in hundreds. Relevant cell is AI2 With Worksheets("Order") If .Range("AJ2").Value = 1 Then Answer = MsgBox("You Order Totals " & Range("AI2").Value & _ "If this is correct click ""Yes"", if not " & _ "Click ""No"" and amend as necessady", vbYesNo) If Answer = vbNo Then Application.Goto Range("A22"), True Range("G39").Activate Exit Sub Else End If End If End With -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Format problem in displayed userform | Excel Worksheet Functions | |||
How do I format a figure as cent (e.g. 0.015 displayed as 1.15) | Excel Discussion (Misc queries) | |||
how do i format the text displayed in a drop down menu? | Excel Discussion (Misc queries) | |||
format decimals displayed based on results | Excel Discussion (Misc queries) | |||
Displayed number format | Excel Worksheet Functions |