Continue running while msgbox displayed

Dodge13

New Member
Joined
May 14, 2004
Messages
3
Hello
I am wondering if it is possible to have code continue running while a messgebox is displayed.

I update about 4 databases, with multple macro updates in each db, and it run overnight. What I want is a messagebox to to show that each db update is completed. My current code waits for me to select ok.

Current Code is:
MsgBox ("DB1 Updated"), vbInformation

Any ideas?? :confused:

THanks
Dodge13
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
You could use a log file, which would append a line for each file as it is backed up. Something like:
Code:
Function WriteLog()
    Dim hFile As Long
    Dim strFile As String
    hFile = FreeFile
    strFile = "C:\Documents and Settings\Denis\My Documents\TestLog.txt"
    
    Open strFile For Append Access Write As hFile
    Write #hFile, "File Backed Up", CurrentProject.path, "Backup Time", Now
    Close hFile
    
End Function
Note: You'll need to create the file first, in the desired directory. Set the paths to suit.
Denis
 
Upvote 0
would it be possible to just set a timer in the code so that as soon as the timer runs out it goes to the next line of code, could work, not sure. never had this problem before.
 
Upvote 0

Forum statistics

Threads
1,221,851
Messages
6,162,429
Members
451,765
Latest member
craigvan888

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top