XL97: No "Record at Mark" Feature in Microsoft Excel 97

Last reviewed: March 13, 1998
Article ID: Q157958
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

You cannot record a Visual Basic macro "inside" another macro in Microsoft Excel 97. This feature is available in earlier versions of Microsoft Excel.

CAUSE

Because of the major changes made to the Visual Basic environment in Microsoft Excel 97, this functionality is no longer available.

WORKAROUND

If you need to record a Visual Basic macro "inside" another macro, record your macro in the normal manner. Once recording is complete, you can activate Visual Basic Editor by pressing ALT+F11 on the keyboard. Then, select the code in your newly-recorded macro, copy it, and paste it into your existing macro.

STATUS

This behavior is by design of Microsoft Excel 97.

MORE INFORMATION

The following menu items are available in earlier versions of Microsoft Excel:

   Menu    Menu Item      Submenu
   --------------------------------------------------

   Tools   Record Macro   Mark Position for Recording
   Tools   Record Macro   Record at Mark

In earlier versions of Microsoft Excel, you can use these menu items to record a Visual Basic macro "inside" another macro. For example, assume you have the following macro in a Visual Basic module:

   Sub Test()
       MsgBox "This is a test macro."
   End Sub

If you want to add more code to the "Test" macro, but you want to record the additional code, do the following:

  1. Click somewhere inside the macro and then on the Tools menu, point to Record Macro, and click "Mark Position for Recording".

The current cursor position will be marked.

  1. On the Tools menu point to Record Macro, then click "Record at Mark".

The Macro Recorder will start recording, and new code will be inserted starting at the position marked in Step 1.

These menu items, and the functionality they provide, are not available in Microsoft Excel 97. Use the workaround shown earlier in this article to circumvent this limitation.


Additional query words: XL97 8.00 vbe
Keywords : kbprg xlvbainfo xlui kbfaq
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.