The information in this article applies to:
SYMPTOMSWhen you open a file from a custom FileOpen macro or use the FileOpen command from a macro, the name of the opened file is not added to the most recently used (MRU) list unless you save the file before closing it. CAUSEThe FileOpen command in Word 6.0 includes a parameter (.AddToMru) that is set to 0 (zero) by default. When it is set to 1, FileOpen adds the filename to the MRU list when you close the file without saving it. RESOLUTIONTo add the file to the MRU list when it is opened but not saved before closing, add the .AddToMru = 1 statement to your macro. Place this statement after the GetCurValues dlg statement as in the following example:
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this macro code "as is" without warranty of any
kind, either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
Kbcategory: kbusage kbmacro Additional query words: 6.00a macros Files listed list word6 winword kbusage kbmacro wordbasic wb
Keywords : kbmacroexample |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |