Forum home » Delegate support and help forum » Microsoft VBA Training and help » access vba course - Vba Message Box
access vba course - Vba Message Box
Resolved · Low Priority · Version Standard
Vba Message Box
Hello,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:
Sub Main()
Application.ScreenUpdating = False
Prices
Weights
Values
Exit Sub
Dim reply As Integer
reply = MsgBox("Copy Yesterday's Data?", vbYesNo)
If reply = vbYes Then
Else
Resume
End If
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
DimitriosAfter the THEN you enter the following line:
Call Main
This runs the Main macro.
Regards
Carlos
|
|
» Forum post: Graphs and Data |
How Training Can Help Prevent Executive Derailment Sometimes, without warning, a promising manager or leader can go off track unexpectedly. It might be that they feel overwhelmed with their workload, or perhaps they are not getting to grips with the new software in the office. But with careful attention to training needs, organisations and individuals can help prevent executive derailment from occurring. » Article: Introduction to management course |



Course updates

