<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Macros Archives - Excel Zoom</title>
	<atom:link href="https://excelzoom.com/category/macros/feed/" rel="self" type="application/rss+xml" />
	<link>https://excelzoom.com/category/macros/</link>
	<description>...because it&#039;s more than just a calculator</description>
	<lastBuildDate>Thu, 02 Apr 2020 01:55:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://excelzoom.com/wp-content/uploads/2022/04/favicon.ico</url>
	<title>Macros Archives - Excel Zoom</title>
	<link>https://excelzoom.com/category/macros/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Open Excel VBA Editor</title>
		<link>https://excelzoom.com/how-to-open-excel-vba-editor/</link>
					<comments>https://excelzoom.com/how-to-open-excel-vba-editor/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Wed, 29 May 2019 09:39:40 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Excel VBA Editor]]></category>
		<category><![CDATA[ExcelVBA]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=4328</guid>

					<description><![CDATA[<p>Excel VBA is a powerful tool which enables the automation of tasks in Excel. It can be used to automate many repetitive tasks along with more complex applications. This quick tip guide shows you how to open the Excel Visual Basic Editor (aka Excel VBA Editor) and get started with VBA programming in Excel. Having [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/how-to-open-excel-vba-editor/">How to Open Excel VBA Editor</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Excel VBA is a powerful tool which enables the automation of tasks in Excel. It can be used to automate many repetitive tasks along with more complex applications. This quick tip guide shows you how to open the Excel Visual Basic Editor (aka Excel VBA Editor) and get started with VBA programming in Excel. Having access to the VBA editor lets you write your own VBA code or review recorded macros. Read on to see How to Open and Start Using the MS Excel VBA Editor</p>
<p><img fetchpriority="high" decoding="async" class="wp-image-4329 size-full aligncenter" src="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Editor.png" alt="Excel VBA - Project Manager" width="1768" height="1034" srcset="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Editor.png 1768w, https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Editor-600x351.png 600w" sizes="(max-width: 1768px) 100vw, 1768px" /></p>
<h2>Open Excel VBA Editor</h2>
<p><img decoding="async" class="wp-image-4330 size-full aligncenter" src="https://excelzoom.com/wp-content/uploads/2019/05/Open-Excel-VBA-Editor.png" alt="Excel VBA - Visual Basic Editor" width="887" height="391" srcset="https://excelzoom.com/wp-content/uploads/2019/05/Open-Excel-VBA-Editor.png 887w, https://excelzoom.com/wp-content/uploads/2019/05/Open-Excel-VBA-Editor-600x264.png 600w" sizes="(max-width: 887px) 100vw, 887px" /></p>
<p>To open Excel visual basic editor,</p>
<p><strong>Click the visual basic button on the developer tab</strong>.</p>
<p><strong>If the Developer tab is not present, go to File -&gt; Options -&gt; customize ribbon and tick Developer.</strong></p>
<p>You can also open VBA in Excel using <strong>Alt + F11 keyboard shortcut</strong>.</p>
<h2>What is the VBA Editor</h2>
<p>Great, now you’re in the editor, what is it? Microsoft Excel&#8217;s Visual basic editor can be referred to as, VBA editor, VB editor and even VBE. It is all the same thing. It’s the place where you can create macros and write scripts in Excel VBA.</p>
<p>The most basic sections of the editor is the Project View in which you can see modules listed down the left hand side. Think of this like a folder for your macros. Modules contain the code that is required for your macros to work. Its beyond the scope of this article to go into how to split out your code into objects but modules gives the user a powerful tool to create efficient and well organized code.</p>
<p><img decoding="async" class="wp-image-4331 size-full aligncenter" src="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Modules.png" alt="Excel VBA - Modules" width="380" height="387" /></p>
<p>To get started writing code you will need to create a new module. Add a new module in VBA editor by clicking on VBAProject(Book1), right click, Insert Model. Delete a module by simply right clicking, Remove Module. Excel will prompt you to confirm before deleting.</p>
<p><img decoding="async" class="wp-image-4332 size-full aligncenter" src="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Insert-New-Module.jpg" alt="Excel VBA Editor - New Module" width="375" height="294" /></p>
<h2>Record a Macro in Excel</h2>
<p>Recording a macro in Excel is a great way to automate tasks as well as a great tool to help learn more VBA code. A common trick is to record a macro and then review the VBA code to see how it works. Now you know how to open the VBA editor in Excel you should be able to record a macro, open the editor and view the code. You’ll see the system generated VBA can be messy but it will give you the key snippets of code needed for the desired action. These can be things as simple as formatting, copying, pasting, deleting or selecting a sell. Alternatively, you could get quite advanced and carry out entire tasks before going into the Excel visual basic editor to review the code.</p>
<p>The world really is your oyster when you get started recording macros in excel. Top tip is to start with small steps. You can always bulk all your small macros into one at a later stage but when it comes to reviewing each step its useful to keep it separate, at least when you are first getting started.</p>
<p><img decoding="async" class="wp-image-4333 size-full aligncenter" src="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Record-Macro.png" alt="Excel VBA Editor - Record Macro" width="739" height="326" srcset="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Record-Macro.png 739w, https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Record-Macro-600x265.png 600w" sizes="(max-width: 739px) 100vw, 739px" /></p>
<h2> Run a Macro in Excel VBA Editor</h2>
<p>Once you have entered the VBA editor, created a module and written some code you will want to run the code.</p>
<p>To run VBA code in VBA editor simply click the Run Macro button which is shaped like a small green triangle on the toolbar. You can also Run Macro in Excel VBA editor by pressing <strong>F5 shortcut.</strong></p>
<p><img decoding="async" class="wp-image-4334 size-full aligncenter" src="https://excelzoom.com/wp-content/uploads/2019/05/Excel-VBA-Run-Macro.png" alt="Excel VBA Editor - Run Macro (F5)" width="559" height="186" /></p>
<p>&nbsp;</p>
<p>This is a very quick introduction to show you how to open VBA in excel, create a new module and also run your macro once written. To write some actual code, as we have suggested above, a great tip is to record macros and then go back and review the code in the MS Excel VBA editor. You’ll be surprised how messy the generated VBA can get but it will give you the key snippets of VBA code you need to get started with Excel VBA programming and is a great way of learning the syntax of VBA. Alternatively, Google is your best friend when it comes to writing macros. So what are you waiting for, press Alt + F11 in Excel and get coding in VBA!</p>
<p>&nbsp;</p>
<p>What to do next? REad our quick <a href="https://excelzoom.com/introduction-to-vba-for-ms-excel/">Introduction to VBA for MS Excel</a></p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/how-to-open-excel-vba-editor/">How to Open Excel VBA Editor</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/how-to-open-excel-vba-editor/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Introduction to VBA for MS Excel</title>
		<link>https://excelzoom.com/introduction-to-vba-for-ms-excel/</link>
					<comments>https://excelzoom.com/introduction-to-vba-for-ms-excel/#respond</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Mon, 12 Feb 2018 20:07:40 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Event Procedure]]></category>
		<category><![CDATA[User Defined Function]]></category>
		<category><![CDATA[VBA]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=3582</guid>

					<description><![CDATA[<p>Introduction: We use programming language to build applications that we use in our work and domestic lives. This is true for almost every computer application that we use. There are numerous languages out there, that are at the disposal of the programmers that use them for various purposes. The language that is used to add more [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/introduction-to-vba-for-ms-excel/">Introduction to VBA for MS Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><strong>Introduction:</strong></h2>
<p>We use programming language to build applications that we use in our work and domestic lives. This is true for almost every computer application that we use. There are numerous languages out there, that are at the disposal of the programmers that use them for various purposes. The language that is used to add more functionality to MS Office, or is used as a default programming language for MS Office is called Visual Basic for Application or simply VBA.</p>
<p>Excel being part of the MS Office suite uses the same programming language and we often found functions and macros written in this language in our excel worksheets. Such written functions are called User Defined Functions, similarly code written to automate the task in Excel are called Macros.</p>
<p>In today&#8217;s tutorial we will explore what is VBA, its different features, a brief introduction to VBA programming and more.</p>
<h2><strong>Accessing the VBA Window in MS Excel:</strong></h2>
<p>As we move on to use Excel VBA, the first thing is see where we have this programming option in Excel. The easiest way of accessing the code editor window in excel is to press Alt+F11 while you are using an Excel worksheet. Alternatively see <a href="https://excelzoom.com/how-to-open-excel-vba-editor/">How to Open Excel VBA Editor </a></p>
<p><img decoding="async" class="aligncenter size-full wp-image-3587" src="https://excelzoom.com/wp-content/uploads/2018/02/01.jpg" alt="" width="1366" height="725" srcset="https://excelzoom.com/wp-content/uploads/2018/02/01.jpg 1366w, https://excelzoom.com/wp-content/uploads/2018/02/01-600x318.jpg 600w" sizes="(max-width: 1366px) 100vw, 1366px" /></p>
<p>This is the window where we will put all the macros and the functions.</p>
<h2><strong>Classification of codes used in MS Excel VBA:</strong></h2>
<p>The code we write in VBA can be classified in either of the following three categories:</p>
<h3><strong>User Defined Function:</strong></h3>
<p>Excel has numerous functions that can be used as we need them. Out of these functions, we came across the situation where neither of them fits in or the formula based solution is too complicated to use, we revert to this option.</p>
<p>We revert to writing function that fulfill a situational or a a very specific need. For example consider following set of code that is written to find the if value is less then zero, is zero or more then it:</p>
<pre style="padding-left: 30px;"><span style="color: #0000ff;">Function FindSign(number)
Select Case number
Case Is &lt; 0
FindSign = “-ive”
Case 0
FindSign = “Zero”
Case Is &gt; 0
FindSign = “+ive”
End Select
End Function</span></pre>
<p>Note that the function always start with “Func” that is used to show its a function. In the above example of function, we have used a special command called “Case” to find if a number is less then zero (or negative), equal to zero or is positive (greater then zero). This is just a start-up example of function that can be easily written with IF() statements, but, we can produce really complicated functions as well.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3592" src="https://excelzoom.com/wp-content/uploads/2018/02/06.jpg" alt="" width="540" height="335" /></p>
<p>In order for these functions to work, we need to place them in “Modules”. A module can be placed or inserted in a worksheet when we have VBA windows enabled. One need to go to Insert &gt; Module and click to insert the module. Once inserted we will select it and place the function code there.</p>
<p>Once we have done this, we will be able to access the function from functions window.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3589" src="https://excelzoom.com/wp-content/uploads/2018/02/03.jpg" alt="" width="447" height="383" /></p>
<p>Thus a user can write any thing he wants to be used a User Defined Function.</p>
<h3><strong>The Macros:</strong></h3>
<p>Macros also belong to the VBA family and are used to automate the task that are frequently done by a user. Thus they are used to speed up the work and reduce burden on end users. An example of already incorporated macros in MS Office is the option to save file after certain time period. Thus certainly reduced the burden on user and also reduces the chances of loosing data if file is not saved.</p>
<p>Besides this, there are numerous situations where VBA is a must required. Consider following example of vba that will highlight all cells that contains formulas in the range:</p>
<pre style="padding-left: 30px;"><span style="color: #0000ff;">Sub CellWithFormulas()
Dim Dataset As Range
Set Dataset = Selection
Dataset.SpecialCells(xlCellTypeFormulas).Interior.Color = vbRed
End Sub</span></pre>
<p>The macros is placed in the same module where we have placed the function. When we execute this macro from the developer&#8217;s tab, we have following result:</p>
<p>In this example, cell B3 and B7 contains the formulas.</p>
<h3><strong>Event Procedures:</strong></h3>
<p>As is indicated by the name, these are the codes that are meant to be used when something or some event happens. The example of an event could be the opening of a workbook, inserting a number in a cell, clicking some cell and many more.</p>
<p>Events Procedures are useful as they are active behind the scene are run as something happens. A very useful example of even procedure is one that is used to highlight the row and column as active cell changes. This makes reading and tracking the data very easy.</p>
<pre style="padding-left: 30px;"><span style="color: #0000ff;">Private Sub ActiveCellHighlight(ByVal Target As Range)
Application.ScreenUpdating = False
Cells.Interior.ColorIndex = 0 
Target.Interior.ColorIndex = 6
Application.ScreenUpdating = True
End Sub</span></pre>
<p>The result is a highlighted active cell.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3590" src="https://excelzoom.com/wp-content/uploads/2018/02/04.jpg" alt="" width="236" height="239" srcset="https://excelzoom.com/wp-content/uploads/2018/02/04.jpg 236w, https://excelzoom.com/wp-content/uploads/2018/02/04-100x100.jpg 100w" sizes="(max-width: 236px) 100vw, 236px" /></p>
<h2><strong>Debugging your code?</strong></h2>
<p>The code that a user writes is not always correct and contains errors. In this case we need a debugging mechanism to find the mistake that we have done. For such situation, VBA editors provides us with a handy tool called “Immediate Window”.</p>
<p>This window can be accessed by using key Ctrl + G when VBA editor is active. This window can be used to execute a line of code, to get the information related to the worksheets, set values to the variables and run macros.</p>
<p>For example in the following screen shot, the initial value of the active cell with yellow fill was 10, as we have found by command ?activecell.value. The value is then re-assigned by using the assignment operator and the offset command.</p>
<p>The offset command lets the value to be on the left side of the cells at difference of 2 columns (hence the negative sign: -2). and when we reprint the value of active cell, it is 5.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-3591" src="https://excelzoom.com/wp-content/uploads/2018/02/05.jpg" alt="" width="621" height="384" srcset="https://excelzoom.com/wp-content/uploads/2018/02/05.jpg 621w, https://excelzoom.com/wp-content/uploads/2018/02/05-600x371.jpg 600w" sizes="(max-width: 621px) 100vw, 621px" /></p>
<p>In the same way, this can be used to run macros, testing small snipts of vba and much more.</p>
<h2><strong>Conclusion:</strong></h2>
<p>VBA is a very handy tool for excel users and gives them a lot of control over their worksheets. The use of VBA makes worksheets look more professional and more interactive. Please download the <a href="https://www.dropbox.com/s/ygu2neu6a5klf5v/Sample.xlsm?dl=1">attached file</a> for example and the vba code.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/introduction-to-vba-for-ms-excel/">Introduction to VBA for MS Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/introduction-to-vba-for-ms-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Using Userform and VBA to get Dynamic Data Validation</title>
		<link>https://excelzoom.com/using-userform-and-vba-to-get-dynamic-data-validation/</link>
					<comments>https://excelzoom.com/using-userform-and-vba-to-get-dynamic-data-validation/#respond</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Wed, 17 May 2017 17:23:09 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=2551</guid>

					<description><![CDATA[<p>Lists are one the commonly used features of Excel. We use them to choose amongst the already selected choices and to avoid repetitive typing. One of the methods to do this is to use Dropdown menu from the Data Validation Option under Data Tab. Though this is realistic and practical option it lacks one feature [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/using-userform-and-vba-to-get-dynamic-data-validation/">Using Userform and VBA to get Dynamic Data Validation</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Lists are one the commonly used features of Excel. We use them to choose amongst the already selected choices and to avoid repetitive typing. One of the methods to do this is to use Dropdown menu from the Data Validation Option under Data Tab.</p>
<p>Though this is realistic and practical option it lacks one feature that I really need – auto completion. If it has been present to some extent, the ability to complete the text more dynamically is not present. In today’s post we will learn how to do it with VBA Features.</p>
<p>Let’s start with an example:</p>
<h2><strong>Our List:</strong></h2>
<p>Let’s assume a list of suppliers that you have – it could be any list but just for the sake of example we are using a list of suppliers to produce invoices. There could be several suppliers with similar names, so we want a list that suggest me the available options.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-2560" src="https://excelzoom.com/wp-content/uploads/2017/05/image001-1.jpg" alt="" width="262" height="289" /></p>
<h2><strong>Starting with VBA:</strong></h2>
<p>In order to access the VBA section of your work sheet – first save it as <strong><em>macro enabled worksheet </em></strong>to make sure that what ever you do, it can be saved in appropriate format worksheet. Otherwise, when you will press save, it will ask you to save it in this format.</p>
<p><img decoding="async" class="aligncenter  wp-image-2562" src="https://excelzoom.com/wp-content/uploads/2017/05/image003.jpg" alt="" width="740" height="324" srcset="https://excelzoom.com/wp-content/uploads/2017/05/image003.jpg 774w, https://excelzoom.com/wp-content/uploads/2017/05/image003-600x263.jpg 600w" sizes="(max-width: 740px) 100vw, 740px" /></p>
<p>Now the VBA section can be reached by either pressing <strong>Alt+F11 </strong>or<strong> </strong>by Right Click the <strong>Sheet Tab&gt;Select View Code. </strong>Either way will lead you to the <strong>VBA Window</strong>. As a first step, select This workbook (for our example sheet named 06 – Using VBA to create ….)</p>
<h2><strong> </strong><strong>Inserting a User form:</strong></h2>
<p>Go to Insert&gt;User Form and insert a user form. After inserting the form:</p>
<ul>
<li>Resize it to suit your taste and need.</li>
<li>Change the caption of the form by going to <strong>Project Properties &gt; Caption&gt; </strong>enter <strong>Supplier Name List.</strong></li>
<li>Add a combo box to the User form:
<ul>
<li style="text-align: left;">Make From Toolbars visible from View &gt; Toolbox</li>
<li style="text-align: left;">Select Combo box and draw one in the form.</li>
<li style="text-align: left;">Similarly selection buttons and adds two to the form. Name them “Insert” and “Cancel”</li>
</ul>
</li>
</ul>
<p>The final layout of your User form should look like following:</p>
<p><img decoding="async" class="aligncenter size-full wp-image-2564" src="https://excelzoom.com/wp-content/uploads/2017/05/image005-1.jpg" alt="" width="235" height="138" /></p>
<h2><strong>Adding Code to User From Items:</strong></h2>
<p><strong> </strong>The next step is to insert the vba codes to the three items in the form to make then operational. We insert this code by selecting and double clicking them with mouse.</p>
<h2><strong>Adding Code to Combo box:</strong></h2>
<p>First, we select the combo box and double click it to insert the code. We need to initialize the user form and element or items to the dropdown of the combo. We need to add following lines of code:</p>
<p style="padding-left: 60px;"><code>Sub UserForm_Initialize()<br />
With ComboBox1<br />
.AddItem "A TO ZEE ENGINEERING"<br />
.AddItem "A&amp;N ENTERPRISES"<br />
End With<br />
End Sub</code></p>
<p>Initialization is in event. In Excel event is like an action – clicking house, pressing enter button etc so when the form is loaded, the above code adds items to the combo box. AddItem method adds items to the combo box.<br />
Once done you should be able to see the items in the user form. To test with, load the user form by pressing F5 and see if items are added to it.</p>
<h2><strong>Adding Code to Insert and Cancel Button</strong></h2>
<p>For Insert button, add these lines of code – it will insert the selected supplier in the current cell.</p>
<p style="padding-left: 60px;"><code>Private Sub CommandButton1_Click()<br />
Selection.Value = UserForm1.ComboBox1.Value<br />
ActiveSheet.Select<br />
End Sub</code></p>
<p>For Cancel button, use these lines:</p>
<p style="padding-left: 60px;"><code>Private Sub CommandButton2_Click()<br />
Unload Me<br />
End Sub</code></p>
<p>This will eventually unload the form. In order to use Esc button for cancelling and unloading the form, set Cancel Property of this button to TRUE.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-2565" src="https://excelzoom.com/wp-content/uploads/2017/05/2017-05-17-21_38_01-Microsoft-Visual-Basic-for-Applications-Copy-of-bill-frwd-to-account.xlsm.jpg" alt="" width="362" height="294" /></p>
<h2><strong>Making all these programs work:</strong></h2>
<p>We have set how the form’s combo box, Insert and Cancel button will work. But one thing is still left to be set – i.e. how to call the form for use.</p>
<p>This will eventually unload the form. In order to use Esc button for cancelling and unloading the form, set Cancel Property of this button to TRUE.</p>
<p>We need to insert another piece of code to call the form. First, insert a Module from the VBA’s Insert menu. Now you can use the following code for this purpose:</p>
<p style="padding-left: 60px;"><code>Sub FormLoad()<br />
Load UserForm1<br />
UserForm1.Show vbModeless<br />
End Sub</code></p>
<p>Note that form should be named UserForm1 otherwise it will not be loaded.</p>
<h2><strong>Setting Shortcut Keys:</strong></h2>
<p>Since we are done with the vba part, we can set the shortcut keys now. Close all the windows including that of vba. Go to Developers Tab&gt;Macros&gt; and select the Macro named FormLoad&gt;Click Option and it will ask your for shortcut key and the description of the macro. The final output should look like:</p>
<p><img decoding="async" class="aligncenter size-full wp-image-2568" src="https://excelzoom.com/wp-content/uploads/2017/05/2017-05-17-22_08_12-Microsoft-Excel-Userform_VBA_Data-Validation.xlsm.jpg" alt="" width="353" height="309" /></p>
<p>For this worksheet, <strong>the shortcut key is</strong> <strong>Ctrl+L</strong></p>
<h2><strong>Conclusion:</strong></h2>
<p>Now you can open any worksheet, just press the short cut key and the user from will be displayed to insert the Supplier Name in the current cell. Once inserted, you can either press Escape key or cancel to hide the form.<br />
Please download the sample file with all the codes and supplier list from <a href="https://www.dropbox.com/s/fwez06td10143vi/Userform_VBA_Data%20Validation.xlsm?dl=1">here</a>.</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/using-userform-and-vba-to-get-dynamic-data-validation/">Using Userform and VBA to get Dynamic Data Validation</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/using-userform-and-vba-to-get-dynamic-data-validation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Delete Every Other Row in Excel</title>
		<link>https://excelzoom.com/delete-every-other-row-in-excel/</link>
					<comments>https://excelzoom.com/delete-every-other-row-in-excel/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Mon, 28 Jul 2014 22:23:13 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Row]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[VBA]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=593</guid>

					<description><![CDATA[<p>Sometimes you will copy and paste data into a worksheet from another file, a web page, or some other source that isn&#8217;t formatted the way you want it. Often times there is extra irrelevant data like row numbers or other miscellaneous information that gets added in when you paste the data. If the unneeded data [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/delete-every-other-row-in-excel/">Delete Every Other Row in Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes you will copy and paste data into a worksheet from another file, a web page, or some other source that isn&#8217;t formatted the way you want it. Often times there is extra irrelevant data like row numbers or other miscellaneous information that gets added in when you paste the data. If the unneeded data is on it&#8217;s own row, you can delete every other row easily with the macro in this tutorial.<br />
</p>
<h2>Delete Every Other Row in Excel</h2>
<p>This tutorial will require you to use the Visual Basic Editor to create a macro.</p>
<p>In earlier versions of Excel (prior to 2007), click <em>Tools</em> &gt; <em>Macro</em> &gt; <em>Visual Basic Editor</em>.</p>
<p>In Excel 2007 or later, click <em>Developer</em> tab, and then <em>Visual Basic</em> in the <em>Code</em> group.</p>
<p>In the <em>Project</em> pane, right click your workbook &gt; <em>Insert</em> &gt; <em>Module.</em></p>
<p><img decoding="async" class="aligncenter size-full wp-image-594" src="https://excelzoom.com/wp-content/uploads/2014/07/insert-module.png" alt="Delete Every Other Row" width="406" height="205" /></p>
<p>Next, double click the new module (usually Module1 unless there were already modules there) under your workbook. Paste the following code into the new module:</p>

<p><strong>IMPORTANT: Create a backup of your file just in case, because there is no easy way of retrieving the data that is deleted after this macro is run.</strong></p>
<p>Depending on your needs, you may need to change the <code>Y = False</code> to <code>Y = True</code> to delete the correct rows. False will delete the even row numbers, and True will delete the odd row numbers. </p>
<p>To use this macro, select the rows that contain the data where every other row should be deleted. The macro will only work on the selected range, so if you have other data outside of a specific range, it won&#8217;t be touched by this macro if you don&#8217;t select it first.</p>
<p>Also, note that the True/False setting discussed earlier refers to the actual row numbers in Excel, and not the 1st, 3rd, 5th etc. or 2nd, 4th, 6th etc. rows in your selected range. For example, if you want to delete every other row with Y=False and select rows 2-8, Excel rows 2, 6, and 8 will be deleted. If you select rows 2-8 with Y=True, Excel rows 3, 5, and 7 will be deleted.</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/delete-every-other-row-in-excel/">Delete Every Other Row in Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/delete-every-other-row-in-excel/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Recover Lost Excel Passwords</title>
		<link>https://excelzoom.com/how-to-recover-lost-excel-passwords/</link>
					<comments>https://excelzoom.com/how-to-recover-lost-excel-passwords/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:30:52 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Automatic]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=274</guid>

					<description><![CDATA[<p>This article will show you how to recover an excel password to unlock a workbook or worksheet. Let me preface this article by saying that this will not help you recover lost data, or gain access to protected data that you otherwise wouldn&#8217;t have access to.  What it will do is allow you to unlock [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/how-to-recover-lost-excel-passwords/">How to Recover Lost Excel Passwords</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This article will show you how to recover an excel password to unlock a workbook or worksheet. Let me preface this article by saying that this will not help you recover lost data, or gain access to protected data that you otherwise wouldn&#8217;t have access to.  What it will do is allow you to <strong>unlock a password protected worksheet in Excel</strong>, for instance, if you have forgot your excel password, so that you can edit it as necessary.  Simply put, if you don&#8217;t already have access to the worksheet, this macro will not help you.</p>
<p>Before we learn how to recover a protected excel sheet password, let&#8217;s figure out why people password protect worksheets to begin with.  By protecting a worksheet and the contents of locked cells, users can keep themselves or other users from:</p>
<ul>
<li>Accidentally (or intentionally) removing formulas, or other contents of locked cells</li>
<li>Adding or deleting rows and columns</li>
<li>Changing cell, column or row formats</li>
<li>Sorting data</li>
<li>Using AutoFilter or PivotTable reports</li>
<li>Editing objects or scenarios</li>
</ul>
<p><br />
Protecting a worksheet will <strong><span style="text-decoration: underline;">not</span></strong> keep users from</p>
<ul>
<li>Editing any unlocked cells in the worksheet</li>
<li>Viewing all data in the worksheet, regardless of if it is in a locked cell or not</li>
<li>Hacking excel passwords / Cracking excel passwords. Excel is not &#8216;secure&#8217;.</li>
</ul>
<p>Being able to unlock a password protected worksheet is useful, when</p>
<ul>
<li>You have forgotten the password on your own worksheet (forgotten excel passwords)</li>
<li>A co-worker, or other user has password protected a worksheet that you now need to edit, and they are not available to unlock the sheet for you</li>
<li>You have a need to perform an analysis of the data in a password protected worksheet, but are unable to do so due to the locked cells</li>
<li>You would like to sort/filter the data in a password protected worksheet, or create a PivotTable report from the data</li>
<li>Need to recover an excel password</li>
</ul>
<p>Since Microsoft Excel is not a &#8220;secure&#8221; program, it is very easy to unlock the password of a password protected worksheet.  This is because there are several different combinations of passwords that Excel will accept to unlock the worksheet.  For example, a worksheet with the password &#8220;treehouse&#8221;, can also be unlocked with the password &#8220;AAAABAABBBB/&#8221;.  The opposite is also true (i.e. protecting with the password &#8220;AAAABAABBBB/&#8221; can be unlocked with the password &#8220;treehouse&#8221;).  Go ahead; try locking a worksheet with the password treehouse, and use AAAABAABBBB/ to unlock it.</p>
<p>The macro code below will &#8220;unlock&#8221; one worksheet at a time, using the method used above.  It won&#8217;t provide you with the actual password someone typed in, but rather a random sequence of letters or symbols that will work to unlock the worksheet. It should not be used as an excel password hack or for breaking an excel password.</p>
<h2>Recover excel password</h2>
<p>Step 1 &#8211; <strong>Open the worksheet in Excel</strong> where you have forgotten your excel password. This is so we can try to recover protected excel sheet password with VBA.</p>
<p>Step 2 &#8211; <strong>Open the VBA Editor</strong> (ALT + F11) &#8211; see our guide <a href="https://excelzoom.com/how-to-open-excel-vba-editor/">How to open Excel VBA Editor</a> if you are unfamiliar with how to do this.</p>
<p>Step 3 &#8211; <strong>Insert a new module and use the VBA code below</strong> to find your forgot excel password.</p>
<p><code><br />
Sub PasswordRecovery()<br />
'<br />
'MACROS BY EXCELZOOM.COM<br />
Dim i As Integer, j As Integer, k As Integer<br />
Dim l As Integer, m As Integer, n As Integer<br />
Dim i1 As Integer, i2 As Integer, i3 As Integer<br />
Dim i4 As Integer, i5 As Integer, i6 As Integer<br />
On Error Resume Next<br />
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66<br />
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66<br />
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66<br />
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126<br />
ActiveSheet.Unprotect Chr(i) &amp; Chr(j) &amp; Chr(k) &amp; _<br />
Chr(l) &amp; Chr(m) &amp; Chr(i1) &amp; Chr(i2) &amp; Chr(i3) &amp; _<br />
Chr(i4) &amp; Chr(i5) &amp; Chr(i6) &amp; Chr(n)<br />
If ActiveSheet.ProtectContents = False Then<br />
MsgBox "One usable password is " &amp; Chr(i) &amp; Chr(j) &amp; _<br />
Chr(k) &amp; Chr(l) &amp; Chr(m) &amp; Chr(i1) &amp; Chr(i2) &amp; _<br />
Chr(i3) &amp; Chr(i4) &amp; Chr(i5) &amp; Chr(i6) &amp; Chr(n)<br />
Exit Sub<br />
End If<br />
Next: Next: Next: Next: Next: Next<br />
Next: Next: Next: Next: Next: Next<br />
End Sub<br />
</code></p>
<p>Step 4 &#8211; <strong>Run the VBA code (F5)</strong> to recover excel password. You will receive a pop-up like the below to recover the excel sheet password.</p>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>It is worth noting that Microsoft is quite clear on its stance that you need to remember or make a note of passwords when protecting a workbook or worksheet and will not offer help in order to recover a lost excel password. See the <a href="https://support.office.com/en-us/article/protect-a-workbook-7e365a4d-3e89-4616-84ca-1931257c1517?redirectSourcePath=%252fen-us%252farticle%252fRecover-a-password-to-open-a-workbook-or-worksheet-8ab9cb7b-eef3-485c-a669-a58816d043d9&amp;ui=en-US&amp;rs=en-US&amp;ad=US" target="_blank" rel="noopener">MS protect a workbook page</a>. So Microsoft cannot help if you have forgotten your excel password or need help recovering a password to open a workbook or worksheet (and probably rightly so!). We notice there is plenty of software available online to help unlock a password protected worksheet in Excel (for all versions of excel) however we like the VBA code noted above as a first option and haven&#8217;t tried and tested all third party applications enough to feel comfortable recommending on here.</p>
<p><em>* Update &#8211; Since this code is widely available online I have unrestricted it from our members area to make it available to all. I hope this helps as we all know how frustrating it can be when you are unable to access a worksheet that you need due to a password protected excel forgot password issue at work or at home. This should not be used to crack an excel protected sheet or break into worksheet you should not have access to. It is however, one useful method to unlock an excel password protected excel sheet.</em></p>
<p>Happy Excelling!  And remember, try not to forget that excel worksheet password in the first place if possible! :-)</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/how-to-recover-lost-excel-passwords/">How to Recover Lost Excel Passwords</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/how-to-recover-lost-excel-passwords/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
		<item>
		<title>Confirmation Before Execution</title>
		<link>https://excelzoom.com/confirmation-before-execution/</link>
					<comments>https://excelzoom.com/confirmation-before-execution/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Sun, 10 May 2009 00:13:53 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=56</guid>

					<description><![CDATA[<p>Often times when you execute a macro, the process isn&#8217;t easily undone. You may have a macro that deletes certain information, or completely reformats your worksheet. In either case, you want to be sure that your workbook&#8217;s users are absolutely certain that they are ready to execute the macro before running it. If the macro [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/confirmation-before-execution/">Confirmation Before Execution</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Often times when you execute a macro, the process isn&#8217;t easily undone. You may have a macro that deletes certain information, or completely reformats your worksheet. In either case, you want to be sure that your workbook&#8217;s users are absolutely certain that they are ready to execute the macro before running it. If the macro can be run by clicking on an object within the worksheet, an accidental click may cause unintended consequences.</p>
<p>The code below will produce a pop up box as soon as the macro is run. It will ask the user if they are certain that they want to run the macro, and give them the option to proceed, or cancel it right there. Think of it like when you&#8217;re about to delete a file from your computer and Windows asks &#8220;Are you sure you want to move this file to the Recycle Bin?&#8221;. Clicking &#8220;Yes&#8221; will delete the file, and &#8220;No&#8221; will cancel the process.<br />
<br />
You can edit the text to be displayed in between the quotes &#8220;Do you want to run this macro?&#8221;. The code will produce two options &#8220;OK&#8221; and &#8220;Cancel&#8221;. If you want it to produce &#8220;Yes&#8221; and &#8220;No&#8221;, change the vbOKCancel to vbYesNo, and vbCancel to vbNo. Both will do the same thing, it just depends on how you want to present the question.</p>
<p>Copy all the code below. Paste it into your workbook&#8217;s Visual Basic editor, either under a Microsoft Excel Object or Module. Replace ** YOUR MACRO CODE HERE ** with your macro&#8217;s commands.</p>
<p>Need help? Use our <a href="https://excelzoom.com/?p=7">nifty guide</a> to help figure out how to install and use your macros.<br />
</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/confirmation-before-execution/">Confirmation Before Execution</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/confirmation-before-execution/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Hide/Unhide Columns</title>
		<link>https://excelzoom.com/hideunhide-columns/</link>
					<comments>https://excelzoom.com/hideunhide-columns/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Sat, 25 Apr 2009 13:18:11 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Formats]]></category>
		<category><![CDATA[Hidden]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=54</guid>

					<description><![CDATA[<p>On occasion, you might find yourself creating a spreadsheet that has multiple columns all set up in a consistent format (i.e. quarterly sales figures for the past 5 years). As time goes on, you may add/remove data to the spreadsheet as needed. This may result in some columns not being used (i.e. in April only [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/hideunhide-columns/">Hide/Unhide Columns</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>On occasion, you might find yourself creating a spreadsheet that has multiple columns all set up in a consistent format (i.e. quarterly sales figures for the past 5 years).  As time goes on, you may add/remove data to the spreadsheet as needed.  This may result in some columns not being used (i.e. in April only the first quarter&#8217;s information will be filled out for the current year, leaving the second, third and fourth quarters blank).</p>
<p><img decoding="async" src="https://excelzoom.com/images/hide_columns_example.jpg" alt="Excel Hide Column Macro" width="500" height="127" /></p>
<p>Using the quarterly sales example above, assume that you&#8217;ve taken the time to set up your spreadsheet with placeholder columns for the remainder of the year.  When printing the information, you don&#8217;t want to just delete the columns, only having to recreate them in the future, and you also don&#8217;t want to have to manually hide/unhide them either.</p>
<p>You can use a macro to toggle between hiding and unhiding these empty columns fairly easily.  The first bit of code will determine if the total in row 8 for columns B through M is 0.  If it is, it will hide the column, otherwise it will make sure the column is not hidden.  The second bit of code will select columns B through M and make sure they all are not hidden, so that you can toggle between hiding the unused columns, and showing all the columns.<br />
<br />
To use this in your own spreadsheet, you may need to change a few things. 1) Change the Range reference (i.e. &#8220;B8:M8&#8221;) to whatever range you want evaluated. 2) Change &#8220;Columns&#8221; in Rng = Selection.Columns.Count to &#8220;Rows&#8221; if the range you are evaluating is a range of rows not columns. 3) If the criteria is something other than &#8220;0&#8221;, change the &#8220;0&#8221;  in If ActiveCell = 0 to whatever that criteria happens to be.  And finally 4) the two lines that say ActiveCell.Offset(0, 1).Select simply moves the selected cell down 0 cells and to the right one cell.  If you&#8217;re evaluating down a range of rows, change the 0 to a 1 and the 1 to a 0 so that it moves the selected cell down 1 cell and to the right 0 cells.  (Note you can move up a cell by inserting a -1 as the first number and to the left by inserting a -1 as the second number).</p>
<p>Need help? Use our <a href="https://excelzoom.com/?p=7">nifty guide</a> to help figure out how to install and use your macros.</p>
<p><strong>Hide Unused Columns:</strong><br />
<br />
<strong>Unhide all Columns:</strong><br />
</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/hideunhide-columns/">Hide/Unhide Columns</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/hideunhide-columns/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Using a For Loop</title>
		<link>https://excelzoom.com/using-a-for-loop/</link>
					<comments>https://excelzoom.com/using-a-for-loop/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Sat, 11 Apr 2009 11:25:11 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Tips]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=101</guid>

					<description><![CDATA[<p> &#8220;For&#8221; loop is used in a macro whenever you have an action that needs to be performed a set number of times. For example, if you want to change the fill color of the first 20 cells in a list, you could have the macro select the range and simply fill as desired. But what [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/using-a-for-loop/">Using a For Loop</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p> &#8220;For&#8221; loop is used in a macro whenever you have an action that needs to be performed a set number of times. For example, if you want to change the fill color of the first 20 cells in a list, you could have the macro select the range and simply fill as desired. But what if you wanted to only fill the cells if they were blank, for example? Telling the macro to select the whole range and fill it wouldn&#8217;t work.</p>
<p>This is where a &#8220;For&#8221; loop is useful. You can have the macro to go down your list, and determine if the cell is blank. If it is, then have the macro fill the cell with a color, otherwise go to the next cell, until it has run through the whole list.</p>

<p>The following code will do exactly what was mentioned above.<br />
</p>
<ul>
<li>The first line identifies the range of rows to be evaluated. It also tells the macro, that if &#8216;x&#8217; is less than 20, keep on going.</li>
<li>The next line tells the macro to select the cell in column 1.</li>
<li>The &#8216;If&#8217; section determines if the selected cell is blank, and if it is, it will fill it with a color (in this case 65535=yellow), and if it isn&#8217;t blank then just move on and evaluate the rest of the cells until the end of the range.</li>
</ul>
<p>The post <a rel="nofollow" href="https://excelzoom.com/using-a-for-loop/">Using a For Loop</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/using-a-for-loop/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Automatically Create an Index for Your Excel File</title>
		<link>https://excelzoom.com/automatically-create-an-index-for-your-excel-file/</link>
					<comments>https://excelzoom.com/automatically-create-an-index-for-your-excel-file/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Thu, 12 Mar 2009 15:39:10 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=5</guid>

					<description><![CDATA[<p>Do you want one central location where you can easily navigate to any worksheet in your file, and then navigate back with one click? This macro lets you quickly and easily create an index in Excel that lists all sheets in your workbook. The best part is that the index excel macro updates itself every time [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/automatically-create-an-index-for-your-excel-file/">Automatically Create an Index for Your Excel File</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Do you want one central location where you can easily navigate to any worksheet in your file, and then navigate back with one click? This macro lets you quickly and easily <strong>create an index in Excel</strong> that lists all sheets in your workbook. The best part is that the index excel macro updates itself every time you select the index sheet! Indexing in Excel made simple.<br />
<br />
If you need an index sheet in your file, you probably already have a zillion worksheets in your file, here is how to make an index in Excel</p>
<h2>Automatically Create Index in Excel</h2>
<ul>
<li><strong>Add a tab and call it &#8220;Index&#8221;</strong> or whatever you want to identify it as an index (table of contents, etc.).</li>
<li><strong>Right click</strong> the Index tab and<strong> select &#8216;View Code&#8217;</strong>.</li>
<li><strong>Enter the VBA code below</strong>. Click on another sheet in your file, then click back on your Index sheet. Hey presto! you&#8217;ll notice that it has populated a list of all the sheets in your file, complete with a convenient link to them.</li>
</ul>
<p>In all your other sheets, cell A1 will have a &#8220;Back to Index&#8221; link for easy navigation. If you want to use another cell for this backwards navigation, change the code in both places where it says A1 to whatever cell you&#8217;d like. Here is what your index in Excel will look like when done.</p>

<p>&nbsp;</p>

<p>Need help? Use our <a href="https://excelzoom.com/?p=7">nifty guide</a> to help figure out how to install and use your macros.</p>
<p><code><br />
Private Sub Worksheet_Activate()<br />
'<br />
'MACROS BY EXCELZOOM.COM - create index in excel<br />
'<br />
Dim wSheet As Worksheet<br />
Dim l As Long<br />
l = 1<br />
With Me<br />
.Columns(1).ClearContents<br />
.Cells(1, 1) = "INDEX"<br />
.Cells(1, 1).Name = "Index"<br />
End With<br />
For Each wSheet In Worksheets<br />
If wSheet.Name &lt;&gt; Me.Name Then<br />
l = l + 1<br />
With wSheet<br />
.Range("A1").Name = "Start_" &amp; wSheet.Index<br />
.Hyperlinks.Add Anchor:=.Range("A1"), Address:="", _<br />
SubAddress:="Index", TextToDisplay:="Back to Index"<br />
End With<br />
Me.Hyperlinks.Add Anchor:=Me.Cells(l, 1), Address:="", _<br />
SubAddress:="Start_" &amp; wSheet.Index, TextToDisplay:=wSheet.Name<br />
End If<br />
Next wSheet<br />
End Sub<br />
</code></p>
<p>We hope this how to index in excel guide helps making an index in excel painless and easy for you. We love this macro code and have opted to make it available to all free of any charge and unrestricted from our members area so you can enjoy the wizardry of this auto updating index in excel :-) Find that tab in excel with your new Index Sheet and impress all your colleagues in the process..</p>
<p>Have some comments about indexing in Excel, we would love to hear them</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/automatically-create-an-index-for-your-excel-file/">Automatically Create an Index for Your Excel File</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/automatically-create-an-index-for-your-excel-file/feed/</wfw:commentRss>
			<slash:comments>28</slash:comments>
		
		
			</item>
		<item>
		<title>Send Emails From Excel</title>
		<link>https://excelzoom.com/send-emails-from-excel/</link>
					<comments>https://excelzoom.com/send-emails-from-excel/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Wed, 04 Mar 2009 18:04:30 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Email]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=52</guid>

					<description><![CDATA[<p>Often times you&#8217;ll find yourself working on a file in Excel that needs to be sent to a co-worker as an attachment. If you store your files on a shared network drive, it could take a little while to find your file, even if you know exactly where it is located. Even then, you may [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/send-emails-from-excel/">Send Emails From Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Often times you&#8217;ll find yourself working on a file in Excel that needs to be sent to a co-worker as an attachment. If you store your files on a shared network drive, it could take a little while to find your file, even if you know exactly where it is located. Even then, you may have to worry about attaching the wrong file if there are several saved with similar file names.</p>
<p>By using the macro below, you&#8217;ll be able to attach the file you have open to an email with the click of a button.<br />
<br />
Copy all the code below. Paste it into your PERSONAL.XLS workbook&#8217;s Visual Basic editor, under a Module. The following steps also need to be completed to use this macro:</p>
<ul>
<li>Change &#8220;someone@example.com&#8221; to the email address of the person you want to send your file to</li>
<li>The line &#8220;This Email was sent on &#8221; &amp; Format(Date, &#8220;mmmm dd, yyyy&#8221;) is the subject line. Change it to whatever you would like your subject to say. This one would read &#8220;This Email was sent on March 04, 2009&#8221; assuming today was March 04, 2009.</li>
</ul>
<p>Need help? Use our <a href="https://excelzoom.com/?p=7">nifty guide</a> to help figure out how to install and use your macros.<br />
</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/send-emails-from-excel/">Send Emails From Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/send-emails-from-excel/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
