Explore BrainMass

Explore BrainMass

    Creating a Macro

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    For this example, we will assume we are reconciling March 2009 sales.

    1) Type 3/12/2009 into cell I16 of the Listings worksheet and press ENTER. This entry records the date of the sale of this item.
    2) Select row 16 by clicking its row number heading. This is the row we will transfer to the SALES spreadsheet.
    3) Select Developer, Record Macro. The record Macro dialog box appears.
    4) Click within the Macro name box and type SOLD
    5) For this Macro, choose lowercase letter s for the shortcut key.
    6) In the "Store Macro In" text box, select "THIS WORKBOOK" from the drop-down list.
    7) Enter any description for this Macro.
    8) Click OK. The Macro is now on and you should see a Stop Recording toolbar and the Recording message at the bottom of the screen.
    9) Click the Relative Reference button on the stop recording toolbar if it is not already selected.
    10) Right Click and select COPY.
    11) Click on the SALES tab. 
    12) Press CTRL + Home
    13) Press END and then the down arrow twice.
    14) Click PASTE on the toolbar. 
    15) Press the down arrow once and click on the Listings tab.
    16) You should be back on Row 16. Choose Edit, Delete.
     17) Click on the Stop Recording button. Verify Recording no longer displays in the status bar. 
    18) Save your changes.
    19) Test your Macro by entering a sales date in another row and running the Macro.
    Enter a sales date in March.
    Highlight the row in which you entered a date.
    Choose Developer, Macro, and run the SOLD macro.
    20) Repeat the test using the shortcut of CTRL + s

    © BrainMass Inc. brainmass.com March 5, 2021, 1:29 am ad1c9bdddf


    Solution Summary

    This solution illustrates how to record a macro to cut a line from one worksheet and copy it to another.