Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 202
Default Message Box on Input

How can I create a Message Box that Pops up when a value entered in a
Cell is greater than 0? This this box should display for 5 seconds
without the user being able to exit from it. Is this possible?

I don't wish to use the display message within Data Validation for
this

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Message Box on Input

Hi,

This will display a message box for 5 seconds if a value 0 is entered in
A1. I don't know how to make it appear without an OK button, perhaps someone
will show us how. Right click your sheet tab, view code and paste the code in.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$A$1" Or _
Target.Value = 0 Or _
Not IsNumeric(Target) Then Exit Sub
Dim Msg As String
Dim Secs As Long
Dim Wsh As Object
Title = "A Message Box"
Msg = "This will close in 5 seconds."
Secs = 5
Set Wsh = CreateObject("WScript.Shell")
RetVal = Wsh.Popup(Msg, Secs, Title, vbExclamation)
Set Wsh = Nothing
End Sub

Mike

"Seanie" wrote:

How can I create a Message Box that Pops up when a value entered in a
Cell is greater than 0? This this box should display for 5 seconds
without the user being able to exit from it. Is this possible?

I don't wish to use the display message within Data Validation for
this

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Message Box on Input

Your users will love you ;-)

Best wishes Harald

"Seanie" wrote in message
...
How can I create a Message Box that Pops up when a value entered in a
Cell is greater than 0? This this box should display for 5 seconds
without the user being able to exit from it. Is this possible?

I don't wish to use the display message within Data Validation for
this

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Message Box on Input

On Mar 28, 5:15*pm, Seanie wrote:
How can I create a Message Box that Pops up when a value entered in a
Cell is greater than 0? This this box should display for 5 seconds
without the user being able to exit from it. Is this possible?

I don't wish to use the display message within Data Validation for
this

Thanks


You can do this, provided you are not using the built in MSG BOX.
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
Input Message Excel Help! Excel Programming 7 May 2nd 08 08:43 PM
comment or input message Alex Excel Programming 1 March 13th 08 09:42 PM
Message or input thesaxonuk Excel Discussion (Misc queries) 4 October 25th 06 09:38 AM
Input Box and Message box Help Lost and Looking for Help Excel Programming 3 June 14th 06 06:13 PM
input message tamersaid Excel Programming 1 June 6th 04 02:06 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"