Hi,
Okay, I have three excel spreadsheets.
Via a macro. The first spreadsheet generates the second spreadsheet.
The third spreadsheet, via it's own macro, copies the data of the second spreadsheet into itself.
At present, I have added the following code to the first spreadsheet:
Workbooks.Open Filename:= "[the third spreadsheet].xls"
Application****n "[the third spreadsheet].xls'!Update"
ActiveWorkbook.Save
ActiveWindow.Close
However, when I wrote the code for the Update macro in the third spreadsheet I included a couple of message boxes. How do I get VBA to handle these message boxes? the msgboxes are vbYesNo.
I've thought up a few ways, but they're complex and I am wondering if there is a far easier solution.
For Reference, the code for these message boxes are:
vbmVisible = MsgBox("Make Visible?", vbYesNo, "Tabs Visible")
vbmEnd = MsgBox("End program?", vbYesNo + vbDefaultButton2, "End Program")
Thanks,
Mike