98.9% Of all customers recommend us, we're so confident about our results we publish all reviews and statsView Live Stats View Reviews
access vba course - Vba Message Box
Resolved · Low Priority · Version Standard
Vba Message Box
I would like to create a message box where it will say: "Copy yesterday's data?". If the user replies yes, then i want it to execute the macro that i have created in VBA (named Main) eitherwise do nothing. So far, my macro lloks like this:
Application.ScreenUpdating = False
Dim reply As Integer
reply = MsgBox("Copy Yesterday's Data?", vbYesNo)
If reply = vbYes Then
I am not sure what to add after the THEN in order to make it run the MAIN sub. any help will be greatly appreciated.
For upcoming training course dates see: Pricing & availability
RE: Vba Message Box
After the THEN you enter the following line:
This runs the Main macro.
Stop Screen Flickering When Running Code
Running VBA code may cause the screen to flicker as the monitor is the slowest part of the program and cannot keep up with the very fast changes taking place.
Welcome. Please choose your application (eg. Excel) and then post your question.
Our Microsoft Qualified trainers will then respond within 24 hours (working days).
Any suggestions, questions or comments? Please post in the Improve the forum thread.