#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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!


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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default 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!


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

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox

ITS SUMTHING LIKE

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

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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/



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
msgbox in VBA peyman Excel Discussion (Misc queries) 6 October 6th 07 09:35 PM
MsgBox help Aaron Cooper Excel Programming 3 April 12th 04 08:19 PM
MsgBox Ed Excel Programming 3 November 23rd 03 05:44 PM
MsgBox Help! rbanks Excel Programming 4 November 21st 03 04:17 PM
msgbox Marcus Excel Programming 3 November 19th 03 11:35 PM


All times are GMT +1. The time now is 07:21 AM.

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"