Solved

Shell.popup --for message

Posted on 2002-03-14
3
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 25 total points
ID: 6865223
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
ID: 6867548
thank you, your code worked out
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6867938
glad to help.
Thanks for "A" grade!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 82
MS Acccess - Update Field in Table when report is printed 6 51
MsgBox 4 71
Collapse and expand table in Word 2010 2 96
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 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