Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default MsgBox Problem

It works It Works WooooHoooo!

Thank You Soooo Much. Man I Have a lot to learn.

Rob :))))

"moon" wrote:


A function always returns a value, so here the statement will do:


MsgBox "Your message", vbOkCancel, "Title"






"Rob" schreef in bericht
...
I'm confused. I want a msgbox that displays my msg and has an ok and a
cancel
button.

How would I do that?

Rob

"moon" wrote:


There is a MsgBox-statement and there is a MsgBox-function. It seems
you're
confusing them.


Public Sub MsgBoxTest()

'MsgBox-Function
Dim mbresult As VbMsgBoxResult
mbresult = MsgBox("Do you want to continue?", vbYesNo + vbQuestion,
"Title")
If mbresult = vbYes Then
'Do your stuff
End If

'MsgBox-Statement
MsgBox "MsgBox-statement sample", vbInformation, "Title"

End Sub




"Rob" schreef in bericht
...
I am Soooo Freeeekin ****ed at this stupid crap...

Why won't this stop returning errors?

MsgBox("First Fill In The Name",vbOKCancel)

I get an expected = error, so I put a darn = then it pops up a darn
list
so
i select a stupid vbCancel. Well when I run it I get a darn darn darn
*&^$%#&%& error again. I tried all sorts of variants but the only one
that
works is this....

MsgBox("First Fill In The Name")

What in the world is going on here and why?

Thank You Very Much In Advance,
Rob






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
Problem in Msgbox() ashish128 Excel Discussion (Misc queries) 4 August 30th 07 04:19 PM
Problem with Msgbox Code Old Dog Excel Programming 3 November 23rd 05 01:14 AM
Problem with coding a msgbox Jacqui Excel Programming 5 November 2nd 05 04:36 PM
Problem with array and msgbox aking1987 Excel Worksheet Functions 0 November 1st 04 08:57 AM
Problem with array and msgbox aking1987 Excel Worksheet Functions 2 October 28th 04 06:20 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"