Restoring Settings in Options Dialog After Running Macro (116328)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q116328 SUMMARY
In Microsoft Excel, when you run a Visual Basic macro that makes changes to
a setting in the Options dialog box, the setting may affect all workbooks.
Therefore, the setting may not be restored, for example, when you close the
workbook the macro was making changes to.
You can use the following sample code in your macro to store a setting in
the Options dialog box that affects all workbooks and to restore the
setting after your macro is run.
Note that this example does not include all settings in the Options dialog
box. In addition, in your macro, you only need to include the individual
settings that you know will be changed by your macro.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbProgramming KB116328 |
---|
|