Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Displaying messages

Hello,

Can anyone provide me with code that will display a
message at the beginning of a macro and at the end when it
finishes running?

Thank You


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Displaying messages

msgbox ("Begin")
msgbox ("End")

"Claudia" wrote in message
...
Hello,

Can anyone provide me with code that will display a
message at the beginning of a macro and at the end when it
finishes running?

Thank You




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Displaying messages

Claudia, try this........

Dim msgentry as String
Msgentry= "type your message here"
MsgBox msgentry, vbOKOnly, "type the title of the message box here"

The vbOkOnly means the message box will only have an ok button to b
clicked to move on, you only need to type Dim msgentry as String onc
at the top of your code, the rest of it you can use where you like, bu
be warned where ever you put it in your code what ever is taking plac
up to that box will stop until ok is clicked (useful if your checkin
code to see if it works to a certain point!).

Hope this helps

Simo

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Displaying messages

Claudia,

A MsgBox will stop and wait for the user to click something to dismiss the
msgbox and continue the macro. Alternatives include putting a message on
the status bar:

Application.StatusBar = "Initializing"
.....
Application.StatusBar = "Processing record " & RecordNumber
....
Application.StatusBar = False ' reset status bar to Excel control

Another possibility is to use a modeless UserForm (Excel 2000 and later).
In the properties of the UserForm, set ShowModal to False. Now show it.
UserForm1.Show
The macro will continue running, and can put up other UserForms, MsgBoxes,
etc., and can even change the caption of a label in the first UserForm
that's been sitting there.

Check out www.cpearson.com for the Alerter. You might also be interested in
his progress bar.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Claudia" wrote in message
...
Hello,

Can anyone provide me with code that will display a
message at the beginning of a macro and at the end when it
finishes running?

Thank You




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
Msg.box -messages TUNGANA KURMA RAJU Excel Discussion (Misc queries) 4 January 6th 06 04:33 AM
Displaying Messages BillCPA Excel Discussion (Misc queries) 1 December 9th 04 06:03 PM
Pop up messages Manos[_2_] Excel Programming 3 November 2nd 03 07:49 PM
Messages not available Otto Moehrbach[_5_] Excel Programming 1 September 30th 03 07:21 PM
Displaying error messages Chip Pearson Excel Programming 1 August 29th 03 10:52 AM


All times are GMT +1. The time now is 11:04 PM.

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

About Us

"It's about Microsoft Excel"