Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default MsgBox question

Ken,

In VBA, go to the Tools menu, choose References, then choose
"Windows Script Host Object Model". Then, use code like the
following:

Dim WSH As IWshRuntimeLibrary.WshShell
Dim Res As Long
Set WSH = New IWshRuntimeLibrary.WshShell
Res = WSH.Popup(Text:="Your Text", secondstowait:=5, _
Title:="Title", Type:=vbYesNo)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Ken Loomis" wrote in message
...
I run a routine that can take quite some time. I'd like to
present a MsgBox at various stages of this operation, in case
the user is sitting there watching.

But, I'd like the message box to go away on it's own to let the
process continue even if the user isn't there to answer.

For example, when all the files that need to be processed have
been found, I'd like a message box to appear that says
something like:

"22 files that need to be processed have been found. Click OK
to continue processing these files. Or, just wait for this
message to disappear."

This way the user can start the process and go to lunch or
whatever and it will still complete.

TIA,
Ken




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 question Wu Excel Discussion (Misc queries) 2 November 9th 08 11:26 AM
MsgBox question... RPIJG[_34_] Excel Programming 1 June 8th 04 09:59 PM
MsgBox Question Ray Batig Excel Programming 1 December 23rd 03 03:42 AM
MsgBox question gareth Excel Programming 2 November 19th 03 05:30 PM
Msgbox question Pancho Excel Programming 4 October 23rd 03 05:36 PM


All times are GMT +1. The time now is 03:35 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"