Message Box Question

Drewgarry007

Board Regular
Joined
Oct 1, 2011
Messages
142
I want to create a "Do you want to update shreadsheet before continuing" message box which will allow person runing the macro to amend the data in the spreadsheet before running the rest of the macro I have written.

Is this possible?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try

Code:
If MsgBox("Do you want to update spreadsheet before continuing", vbYesNo + vbQuestion) = vbYes Then Exit Sub
 
Upvote 0
Then if the user presses "yes" and updates the spreadsheet, how do they then continue the macro from when it was stoped by the message box ?
 
Upvote 0
Hmmm it wont work if i have to run the entire macro script again from the start. This message box would be halfway down the code I have written and would want to continue from that point ?
 
Upvote 0

Forum statistics

Threads
1,223,565
Messages
6,173,092
Members
452,501
Latest member
musallam

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