XL98: No "Record at Mark" Feature in Microsoft Excel 98

Last reviewed: March 13, 1998
Article ID: Q182412
The information in this article applies to:
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

You cannot record a Visual Basic macro "inside" another macro in Microsoft Excel 98 Macintosh Edition. 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 98 Macintosh Edition, 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. After you are finished recording, start the Visual Basic Editor by pressing OPTION+F11. Then, select the code in the newly recorded macro, copy it, and paste it into your existing macro.

STATUS

This behavior is by design of Microsoft Excel 98 Macintosh Edition.

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

   http://www.microsoft.com/supportnet/refguide/

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.

  2. On the Tools menu, point to Record Macro, and then click Record At Mark.

The Macro Recorder starts recording, and new code is inserted starting at the position marked in Step 1.

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


Additional query words: XL98 vbe
Keywords : kbprg xlvbainfo xlui
Version : MACINTOSH:98
Platform : MACINTOSH
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.