1 00:00:01,080 --> 00:00:06,960 In this video we're going to walk through how to set up your Excel file to allow the use of Visual Basic 2 00:00:06,990 --> 00:00:13,310 or VBA so you can building custom features and functionality that you wouldn't be able to access otherwise. 3 00:00:13,320 --> 00:00:18,060 So the first thing we need to do is activate the developer tab and you can see up here in the top of 4 00:00:18,060 --> 00:00:19,710 my screen and my ribbon. 5 00:00:19,710 --> 00:00:25,530 I don't have a developer tab currently shown you can only see the general basic tabs that Excel starts 6 00:00:25,530 --> 00:00:31,560 you off with the developer tab is what houses all of the VBA functionality and its interface within 7 00:00:31,560 --> 00:00:32,230 Excel. 8 00:00:32,310 --> 00:00:35,370 So we're definitely going to need to activate that in order to do so. 9 00:00:35,370 --> 00:00:41,790 We're going to go to file and then go down to options and depending on which version of Excel you're 10 00:00:41,790 --> 00:00:46,590 using your options might be placed a little bit differently on your screen but it should take you to 11 00:00:46,590 --> 00:00:51,900 the same place which is this options window that pops up and you can control a lot of the different 12 00:00:51,900 --> 00:00:54,330 ways Excel behaves in this window. 13 00:00:54,390 --> 00:00:59,440 But for now we're primarily interested in the customized ribbon option that you see here. 14 00:00:59,490 --> 00:01:04,200 So go ahead and click on that and this feature allows you to customize the interface you see at the 15 00:01:04,200 --> 00:01:06,810 top of Excel or in this ribbon that's up here. 16 00:01:06,870 --> 00:01:11,480 It allows you to add buttons or functions that you use a lot or add new tabs entirely. 17 00:01:11,520 --> 00:01:14,080 And so for us we want to add the developer tab. 18 00:01:14,130 --> 00:01:21,660 So under this choose commands from dropdown go ahead and select all tabs you can see this list on the 19 00:01:21,660 --> 00:01:28,230 left contains all of the tabs Excel is capable of showing you and the list on the right contains what 20 00:01:28,230 --> 00:01:30,870 Excel considers to be the main tabs. 21 00:01:30,870 --> 00:01:36,390 So right now we can see that this box next to developer is unchecked which means it's not currently 22 00:01:36,390 --> 00:01:37,450 being shown. 23 00:01:37,620 --> 00:01:42,180 We're gonna want to go ahead and check that box to make sure that our developer tab will show up in 24 00:01:42,180 --> 00:01:46,290 our ribbon in case you don't see the developer tab in your main list. 25 00:01:46,350 --> 00:01:52,410 You can take any of these tabs that appear in the all tabs list on the left and click them to add them 26 00:01:52,830 --> 00:01:55,150 to your main tab window. 27 00:01:55,170 --> 00:02:01,860 Now when I click OK to close this we can now see I have my developer tab up at the top with all my other 28 00:02:01,860 --> 00:02:09,150 tabs that I can toggle between and this is the primary interface that we're going to use for interfacing 29 00:02:09,150 --> 00:02:14,790 with Visual Basic in our excel file to really make sure we have everything we need access to to build 30 00:02:14,820 --> 00:02:16,470 our custom features. 31 00:02:16,470 --> 00:02:21,990 The last thing you need to know about making your Excel file capable of using VBA code and using macros 32 00:02:22,320 --> 00:02:27,510 is that you need to save the file as a special macro enabled excel file instead of your general excel 33 00:02:27,510 --> 00:02:35,840 file macro enabled files aren't shareable but they do allow you to run code which is the macros in your 34 00:02:35,840 --> 00:02:36,700 workbook. 35 00:02:36,770 --> 00:02:44,750 So we're going to go up to file and then down as and depending on which version of Excel you're using 36 00:02:44,750 --> 00:02:49,700 this screen might look a little bit different but the same general idea we're going to either click 37 00:02:49,700 --> 00:02:56,630 on this P.C. or browse or wherever you want to save the file too and then go ahead and navigate to your 38 00:02:56,630 --> 00:02:58,400 file location. 39 00:02:58,400 --> 00:03:01,370 Now we can see right here under Save As type. 40 00:03:01,640 --> 00:03:07,220 Right now it defaults to Excel workbook which is your general excel file so we can go ahead and save 41 00:03:07,220 --> 00:03:10,320 this once and we'll just call it regular. 42 00:03:10,610 --> 00:03:14,480 And this way we'll be able to see the difference between the two files that we're gonna do that again 43 00:03:14,960 --> 00:03:18,330 file save as browse. 44 00:03:18,350 --> 00:03:24,950 Now this one I will call macros and instead of saving it as a general Excel workbook I'm going to save 45 00:03:24,950 --> 00:03:31,130 this as an Excel macro enabled workbook which is this option right here and then click on that and click 46 00:03:31,130 --> 00:03:33,550 save. 47 00:03:33,760 --> 00:03:40,240 Now if I open this file location we can see that these icons and the file types over here are actually 48 00:03:40,240 --> 00:03:41,810 going to be a little bit different. 49 00:03:41,890 --> 00:03:44,080 And so we can see this is your regular file. 50 00:03:44,080 --> 00:03:52,210 It's got the regular Excel icon as its icon and it's just called a Microsoft Excel worksheet which again 51 00:03:52,210 --> 00:03:55,010 is just a general excel file with your regular data. 52 00:03:55,020 --> 00:03:56,540 Nothing special in it. 53 00:03:56,710 --> 00:04:02,650 This macros file you can see the icon is a little bit different it has this green scroll in the corner 54 00:04:02,650 --> 00:04:03,240 of it. 55 00:04:03,370 --> 00:04:09,250 And that means that this file actually has some embedded code it has are macros and things that might 56 00:04:09,250 --> 00:04:12,040 be built into it and it's not a shareable file. 57 00:04:12,040 --> 00:04:18,130 So any user who comes and looks at these two files can immediately tell this is a regular file it has 58 00:04:18,130 --> 00:04:24,430 the regular icon as you say regular Microsoft Excel worksheet whereas this file is the macros file it 59 00:04:24,430 --> 00:04:28,650 has the scroll in the corner and it says it is a macro enabled worksheet. 60 00:04:28,840 --> 00:04:33,760 And so a user will instantly know whether or not it's a general excel file or if it's something that 61 00:04:33,760 --> 00:04:40,120 they should be looking for buttons or code or things like that that might enhance the usability of the 62 00:04:40,120 --> 00:04:42,450 file. 63 00:04:42,660 --> 00:04:50,790 So in this video we talked about how to set up Excel to be capable of using macros how to build in the 64 00:04:50,820 --> 00:04:57,300 developer tab and ways for you to access the VBA that lives behind the file and all of all of the general 65 00:04:57,300 --> 00:05:03,600 setup work that would go into enabling your file to receive VBA code and macro code.