The information in this article applies to:
SUMMARYIn Microsoft Excel 98 Macintosh Edition, unlike in earlier versions of Microsoft Excel, there is no menu command to record a macro that uses relative cell references. However, you can click Relative Reference on the Stop Recording toolbar. MORE INFORMATIONMicrosoft 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 professionals 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/support/supportnet/overview/overview.aspTo record a macro that uses relative cell references, click Relative Reference on the Stop Recording toolbar. Note that Clicking Relative Reference a second time turns off relative recording. NOTE: The ScreenTip for Relative Reference does not change to indicate that relative recording is already available. The only indication that relative recording is started is the appearance of the Relative Reference button. When the button has a sunken 3-dimensional appearance, relative recording is started. If the Stop Recording toolbar does not appear when you begin recording a macro, you must display it. To display the Stop Recording toolbar, point to Toolbars on the View menu, and then click Stop Recording. When you do this, Microsoft Excel inserts an extra line of code in your macro. Note that when you run the recorded macro, the Stop Recording toolbar is displayed. To remove the extra line of code that displays the toolbar when you run the macro, follow these steps:
Absolute vs. Relative RecordingBy default, recorded macros use absolute cell referencing, which means that exact cell locations are recorded in the macro. The macro works only with the exact cells addresses you use when you record the macro.When you record a macro that uses relative cell referencing, the actions recorded in the macro are relative to the starting cell location. The following examples record the same action with absolute, and then relative cell referencing. Recording with Absolute Cell ReferencingTo record a macro with absolute cell referencing, follow these steps:
Recording with Relative Cell ReferencingTo record a macro with relative cell referencing, follow these steps:
REFERENCESFor more information about recording macros, click Contents And Index on the Help menu (or on the Balloon Help menu if you are using a version of the Macintosh operating system earlier than 8.0), click the Index button in Microsoft Excel Help, type the following text macros, recordingand then click Show Topics. Select the "Record a macro" topic, and click Go To. If you are unable to find the information you need, ask the Office Assistant. Additional query words: XL98
Keywords : kbprg kbdta xlui xlvbahowto xlvbainfo |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |