
Haven't added some wacky, unwanted command to the macro or, even worse, crippled it so that it no longer runs at all. Statement or property does in the macro by selecting it with the I-beam mouse pointer and pressing F1 or by clicking the Help button on theĪfter you finish editing the macro, you're ready to return to your spreadsheet where you can test out the modified macro and make sure that you That you can use the Edit → Undo (Ctrl+Z) command to undo any deletion that you make by mistake. When editing the macro's commands, remember
#ONE PIECE SUB INDO TERBARU CODE#
Edit the statements in the Code window of Visual Basic Editor as needed.The Print What section so that you just click OK to have Excel print all the statements in the macro. This action opens a Print dialog box with the Current Module option button selected in the Range section and the Code check box selected in If you want to obtain a printout of the lines of code in your macro before you begin making changes, choose File → Print or pressĬtrl+P. You then need to click OK in the alert dialog box, pressĮsc to close the Macro dialog box, and then unhide the Personal Macro Workbook before you repeat these first two macro editing steps.Īfter you have the lines of code for the macro displayed in the Code window in Visual Basic Editor, you can edit any of its statements as In that case, Excel displays an alert dialog box telling you that you can't editĪ hidden macro and informing you that you need to use the Window → Unhide command. The Personal Macro Workbook and this workbook is still hidden. Select the name of the macro that you want to edit in the Macro Name list box and then click the Edit button to open the module sheet containingĮxcel opens Visual Basic Editor with the code for your macro displayed in the Code window - unless you select the name of a macro saved in.Press Alt+F8 or choose Tools → Macros → Macro to open the Macro dialog box.To open a macro for editing in Visual Basic Editor, follow these general steps: Its behavior by simply editing its contents in Visual Basic Editor (also known as the VBA - as in Visual Basic for Applications - Editor for short).īefore you can use VBA Editor to edit a macro that you saved in your Personal Macro Workbook, you must first unhide this workbookīy selecting PERSONAL.XLS in the Unhide dialog box (Window → Unhide). In many cases, you may find it more efficient to change Editing Macros in the Visual Basic EditorĪfter you've created a macro, you don't necessarily have to rerecord it to change the way it behaves.
