• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Message while VBA is running

Portucale

Member
Hi,

I have a function which calls 8 other macros, I would like to present to the users a message which let them know which routine/function is currently running.

Any idea?

Any help and ALL help is very much appreciated,

Thanks,
 
Hi Portucale,

Everytime you call a routine just use msgbox to define the working of that particular routine..you will have to do something like this...see the image
 

Attachments

  • Capture.JPG
    Capture.JPG
    12.2 KB · Views: 6
Ideally yes...coz every routine will contain a different set of codes with different functionality...So definition of every routine will be different..
 
In that case, you can create a routine to display the messge...and call that routine everytime just before you call the other routines...
 
Thanks,

A lot better than my procedure, not sure why but it takes longer than the 10 secs...

Code:
Private Sub Timer()
' function to disable MsgBox after determined time

Dim AckTime As Integer, MsgBox As Object
    Set MsgBox = CreateObject("WScript.Shell")
    'Set the message box to close after 10 seconds
    AckTime = 10
    Select Case MsgBox.Popup("Now running - SortOverview" & vbCrLf & _
                            "(this window closes automatically after 10 seconds).", _
    AckTime, "This is your Message Box", 0)
        Case 1, -1
            Exit Sub
    End Select

End Sub
 
Happy that it works for you…However, I tried your code as well but it works absolutely fine..and doesn’t take more than 10 seconds..
 
Back
Top