Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Msg Box Question

Hello,
I like to write a code to appear the
below message in the message box window.

Total profit is = Range(A1)-Range(A2)-Range(A3)
Total loss is = Range(B1)-Range(B2)-Range(B3)

The message can appear as a single line or more.

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Msg Box Question

John,

Do you mean

MsgBox "Total profit is = " & Range("A1") - Range("A2") - Range("A3") &
vbCrLf & _
"Total loss is = " & Range("B1") - Range("B2") -
Range("B3")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"John" wrote in message
...
Hello,
I like to write a code to appear the
below message in the message box window.

Total profit is = Range(A1)-Range(A2)-Range(A3)
Total loss is = Range(B1)-Range(B2)-Range(B3)

The message can appear as a single line or more.

Thanks.




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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
One question Omer Excel Discussion (Misc queries) 4 June 16th 07 01:58 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


All times are GMT +1. The time now is 02:27 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"