![]() However, we can perform some repetitive tasks using Excel with just a few clicks. Doing the same tasks repeatedly from scratch takes time and effort. While working with Excel regularly, users often encounter scenarios when they repeatedly have to perform certain tasks every one or two days. In the next video, we'll rewrite the "FillDaysRelative" macro manually in an Excel tool called the Visual Basic Editor, so that it'll do something a little bit different.MS Excel, or Microsoft Excel, is powerful spreadsheet software that most people regularly use for certain tasks, such as recording data or performing various mathematical or analytical operations. So, you can see that the relative references setting can be very important. This time, I choose "FillDaysRelative" and Run, and now it works perfectly. Now, I'll clear these cells and I'll switch to cell C7 and run my macro from there. I'll type Sunday, do my auto-fill, and Stop Recording. So, I click Record Macro, give it a new name, "FillDaysRelative", and click OK to start recording. Just to change things up a bit, let's start at cell B5. So, I'll clear these cells, and turn on Use Relative References. Well, I know I need to record a new macro. It happened because, by default, the macro recorder was using absolute references.īefore I started recording, I should have turned on Use Relative References.īy using relative references, the macro will build a series by selecting the active cell and 6 cells to its right, instead of building a series using A1 through G1. I'll clear these cells again, and this time I'll select a cell in a different column and row C3, just to test the macro a little more. I'll click the Macros button to bring up the Macro dialog box, and click Run. Now I'll clear these filled cells to clean up the worksheet, and select A1 again so we can test our macro. We are done with our auto-fill, and since that's all we wanted to record, I'll click Stop Recording. See how the Record Macro button turned to Stop Recording. ![]() I'll repeat these steps, but this time, I'll turn on the macro recorder. So, I'll clear these cells and select A1. When I get over here, I release the right mouse button and click Fill Series. After I type Sunday, I right-click the cell and drag it to the right.Īs I move over here, the Tool Tips show what will go in each cell, all the way through Saturday. I'll record an auto-fill operation where I build a series of days based on typing Sunday in a cell. Now, I see the DEVELOPER tab and here in the Code group are the Record Macro button and some other buttons I'll go over later. I click the FILE tab > Options > Customize Ribbon, and over here, I select Developer, and then click OK. That's where all of the macro commands are. Now before we get started, I want to make sure the DEVELOPER tab is available on the ribbon. If you are on a Windows RT PC, you'll see Microsoft Office 2013 RT here. To see what version of Office 2013 you are running, click FILE and then click Account. The macro recorder is the easiest way to create a new macro in Excel.Ī quick note: Macros aren't available in Office on a Windows RT PC. ![]() You want to automate a repetitive task in Excel, so that you can do the task again with a single click.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |