vba - Creating a message box in Excel FROM Access -


My database is controlling the creation and manipulation of Excel spreadsheets and then presents the user to save them, however, I've found that users are canceling on the saved dialog, which means they are still effective in template sheets.

I have made this goal by adding a loop, but again after the cancellation with the message "You need to save this sheet" before prompting the dialog box again, prompt the user . However, when I MsgBox "You must save this file!", VbCritical + vbOK only, "Save Error" box is shown in Access instead of Excel. Certainly there should be a way to refer to Excel, but I have tried "codex" apxl.msxbox "save this file!", VbCritical + vbOKOnly, "save error" and nowhere else (Obviously referring to my Excel number is all A-OK because the sheets work fine).

Is there a way to trigger a message box in a controlled application?

Try adding vbSystemModal to MSBbox

  apxl.msbox "You have to save this file!", VbCritical + VbOKOnly + vbSystemModal, "Save Error"  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -