Solved

Shell.popup --for message

Posted on 2002-03-14
3
178 Views
Last Modified: 2008-03-17
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 "
0
Comment
Question by:RanjiniPraba
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 25 total points
Comment Utility
Try:
dim ws
set ws=createobject("wscript.shell")
ws.PopUp "You have got a new message", 5, "New message Arrival", 64
0
 

Author Comment

by:RanjiniPraba
Comment Utility
thank you, your code worked out
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
glad to help.
Thanks for "A" grade!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now