Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If I write a Macro to open another file, and copy data out of it, then close
it, is there a way to prevent the message box of "Do You Want to Save the Changes You Made...," so that the end user does not need to click on "No" each time? As always, your help is greatly appreciated. Thank You. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Couple of ways
Application.DisplayAlerts=False At the start of your code and True at the end or any possible exit point If you don't want it saved Workbooks("myWorkbook").Saved=True Makes Excel think it is clean If you want it saved Workbooks("myWorkbook").Save -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "HROBERTSON" wrote in message ... If I write a Macro to open another file, and copy data out of it, then close it, is there a way to prevent the message box of "Do You Want to Save the Changes You Made...," so that the end user does not need to click on "No" each time? As always, your help is greatly appreciated. Thank You. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I email amacro? | Excel Worksheet Functions | |||
error when running cut & paste macro | Excel Worksheet Functions | |||
Macro syntax to open file in current explorer folder | Excel Discussion (Misc queries) | |||
cannot open an xl97 file | Excel Discussion (Misc queries) | |||
Sumif Linking to Another Workbook error #VALUE! | Excel Discussion (Misc queries) |