Shell.popup --for message

I am developing a VB application where i need to give a pop-up message on the arrival of a new message, for which i have the following code,

wshShell.PopUp("You have got a new message", 5, "New message Arrival", 0 & 64) = 1

The code works fine.
But, i also get the following error message after displaying the message for the specified no. of seconds. The error message is

" Run-Time error 451
Property let procedure not defined and Property get procedure did not return an object "
Who is Participating?
Richie_SimonettiConnect With a Mentor IT OperationsCommented:
dim ws
set ws=createobject("")
ws.PopUp "You have got a new message", 5, "New message Arrival", 64
RanjiniPrabaAuthor Commented:
thank you, your code worked out
Richie_SimonettiIT OperationsCommented:
glad to help.
Thanks for "A" grade!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.