ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MsgBox (https://www.excelbanter.com/excel-programming/294921-msgbox.html)

shasta[_5_]

MsgBox
 
i tried to a msgbox like i usually do and get a message wen i test i
saying
"Function call on left hand side must return variant or object"

Microsoft Help is no help....i dn't understand wat it means!:confused

--
Message posted from http://www.ExcelForum.com


Frank Kabel

MsgBox
 
Hi
please post your code which throws this error :-)

--
Regards
Frank Kabel
Frankfurt, Germany


i tried to a msgbox like i usually do and get a message wen i test it
saying
"Function call on left hand side must return variant or object"

Microsoft Help is no help....i dn't understand wat it

means!:confused:


---
Message posted from http://www.ExcelForum.com/



patrick molloy

MsgBox
 
There is no "=" after th emsgbox command
eg

MsgBox = "hello world!"
results in the error that you had.

The code should be

MsgBox "hello world"


Patrick Molloy
Microsoft Excel MVP
-------------------
I Feel Great
-----Original Message-----
i tried to a msgbox like i usually do and get a message

wen i test it
saying
"Function call on left hand side must return variant or

object"

Microsoft Help is no help....i dn't understand wat it

means!:confused:


---
Message posted from http://www.ExcelForum.com/

.


shasta[_7_]

MsgBox
 
ITS SUMTHING LIKE

MsgBox("Message", vbOkOnly, "Instructions")=vbO

--
Message posted from http://www.ExcelForum.com


Chip Pearson

MsgBox
 
It isn't clear what you are trying to do, but try something like

MsgBox "Message",vbOkOnly,"Instructions"
' or
If MsgBox("Message",vbOkCancel,"Instructions") = vbOk Then
' user clicked OK
Else
' user clicked Cancel
End If

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"shasta " wrote in
message ...
ITS SUMTHING LIKE

MsgBox("Message", vbOkOnly, "Instructions")=vbOK


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com