Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 202
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
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 problem in displayed userform Anthony Excel Worksheet Functions 8 June 30th 08 02:52 PM
How do I format a figure as cent (e.g. 0.015 displayed as 1.15) JMiB55 Excel Discussion (Misc queries) 1 June 15th 07 02:41 PM
how do i format the text displayed in a drop down menu? BMA Excel Discussion (Misc queries) 1 March 20th 07 11:41 AM
format decimals displayed based on results widman Excel Discussion (Misc queries) 3 October 17th 06 03:35 PM
Displayed number format Kevin Excel Worksheet Functions 2 November 23rd 04 04:23 PM


All times are GMT +1. The time now is 06:35 PM.

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"