<?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/"
	>

<channel>
	<title>Excel Macros Archives -</title>
	<atom:link href="https://mitindia.in/tag/excel-macros/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/excel-macros/</link>
	<description></description>
	<lastBuildDate>Sat, 26 Nov 2016 07:08:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>Excel Macros Archives -</title>
	<link>https://mitindia.in/tag/excel-macros/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Macros in Excel</title>
		<link>https://mitindia.in/macros-in-excel/</link>
					<comments>https://mitindia.in/macros-in-excel/#comments</comments>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Wed, 22 Jun 2016 11:12:34 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Excel Macros]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=164</guid>

					<description><![CDATA[<p>Excel Macros A macro can be defined as the recording of a series of tasks. It’s the simplest form of automation – show a software program the steps you follow to get something done, and the software will follow along. When used right, macros can save you hours by automating simple, repetitive tasks. A macro [&#8230;]</p>
<p>The post <a href="https://mitindia.in/macros-in-excel/">Macros in Excel</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Excel Macros</h3>
<p>A macro can be defined as the recording of a series of tasks. It’s the simplest form of automation – show a software program the steps you follow to get something done, and the software will follow along. When used right, macros can save you hours by automating simple, repetitive tasks.</p>
<p>A macro is a series of commands and functions that are stored in a Microsoft Visual Basic module (module: A collection of declarations, statements, and procedures stored together as one named unit. And can be run whenever you need to perform the task.</p>
<p>For example, if you often enter long text strings in cells, you can create a macro to format those cells so that the text wraps.</p>
<p>Recording macros When you record a macro, Excel stores information about each step you take as you perform a series of commands. You then run the macro to repeat, or &#8220;play back,&#8221; the commands. If you make a mistake when you record the macro, corrections you make are also recorded. Visual Basic (Visual Basic: A high-level, visual-programming version of Basic. Visual Basic was developed by Microsoft for building Windows-based applications.) stores each macro in a new module attached to a workbook.</p>
<div>To Create a Macro, Follow simple steps.</div>
<div>1. Start the MS Excel Application</div>
<div>2. Go to &#8220;Developer&#8221; Tab Menu</div>
<div>3. Click &#8220;Record Macro&#8221; Button (follow screen shot)</div>
<div class="separator"><img fetchpriority="high" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-ju5RRAWCJ5Y/VapDR8gAkaI/AAAAAAAAAZk/tD_XfFWcKUM/s400/macro1.JPG" width="400" height="225" border="0" /></div>
<div></div>
<div>4. Save the macro as following screen shot.</div>
<div class="separator"><img decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-tDSyBhjPHuI/VapDuwDZDTI/AAAAAAAAAZs/_i1xuh_OHAY/s320/macro2.JPG" width="320" height="234" border="0" /></div>
<div class="separator"></div>
<div class="separator">5. After saving, Now Start typing some content as following.</div>
<div class="separator"><img decoding="async" class="alignnone" src="http://1.bp.blogspot.com/--2wKbS59M7w/VapFUOpHNuI/AAAAAAAAAZ4/InXeJ5zuU0c/s320/macro3.JPG" width="320" height="249" border="0" /></div>
<div class="separator"></div>
<div>6. After typing all records as shown in above image, now again go to &#8220;Developer&#8221;Tab and click on &#8220;Stop Recording&#8221; as shown in above image as well.</div>
<div></div>
<div>7. Save the work book as &#8220;Excel Macro Enabled Work Book&#8221; under &#8220;Save as Type&#8221; for future use of this macro example. (follow below screen shot image)</div>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-dCsuMD5c_j0/VapGKx8wrpI/AAAAAAAAAaA/fn4yOAL3c-A/s320/macro4.JPG" width="320" height="75" border="0" /></div>
<div></div>
<div>8. Now, Go to Sheet2 in the same work book and add a CommandButton (see below image)</div>
<div></div>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-MPLxKy0hlww/VapHATSwX4I/AAAAAAAAAaI/ueARgsx_uPc/s320/macro5.JPG" width="320" height="101" border="0" /></div>
<div></div>
<div>9. Now, right click on Button, then select &#8220;View Code&#8221; (follow below image)</div>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-nM1spRb30r4/VapHgpdEqRI/AAAAAAAAAaQ/MAS-MQCHBNo/s1600/macro6.JPG" width="282" height="284" border="0" /></div>
<div class="separator"></div>
<div class="separator">10. This will open next window as following and type following code in it to call newly created macro (refer below image)</div>
<div></div>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/--Xg8hPYk9z4/VapIDwW8CjI/AAAAAAAAAac/XziohLZwW6E/s320/macro7.JPG" width="320" height="85" border="0" /></div>
<div></div>
<div></div>
<div>11. Now click on &#8220;Call Macro&#8221; button to run the macro to fill all records in new sheet from existing macro.</div>
<div></div>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-4u5JbsyE69A/VapIma7lV2I/AAAAAAAAAak/445Iea3Vukw/s320/macro8.JPG" width="320" height="140" border="0" /></div>
<div></div>
<div>That&#8217;s all!</div>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fmacros-in-excel%2F&amp;linkname=Macros%20in%20Excel" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fmacros-in-excel%2F&amp;linkname=Macros%20in%20Excel" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fmacros-in-excel%2F&#038;title=Macros%20in%20Excel" data-a2a-url="https://mitindia.in/macros-in-excel/" data-a2a-title="Macros in Excel"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/macros-in-excel/">Macros in Excel</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mitindia.in/macros-in-excel/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Creating an Excel form with Macros</title>
		<link>https://mitindia.in/creating-an-excel-form-with-macros/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Wed, 22 Jun 2016 11:10:08 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Excel Macros]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=162</guid>

					<description><![CDATA[<p>This tutorial teaches you how to create an excel forms with Macros with step-by-step approaches. Step1 :  Open MS Excel Application and then click on “Developer” Tab  then click on “Visual Basic” option as shown in following screen shots. Step2: Click on “Insert” menu then select “UserForm” as shown in below image Step3: Drag and [&#8230;]</p>
<p>The post <a href="https://mitindia.in/creating-an-excel-form-with-macros/">Creating an Excel form with Macros</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This tutorial teaches you how to create an excel forms with Macros with step-by-step approaches.</p>
<p>Step1 :  Open MS Excel Application and then click on “Developer” Tab  then click on “Visual Basic” option as shown in following screen shots.</p>
<p><img decoding="async" src="http://2.bp.blogspot.com/-LPOnAd5d8Zg/Vbneino1C9I/AAAAAAAAAd8/gFewXAo20nw/s320/Macro1.PNG" /></p>
<p>Step2: Click on “Insert” menu then select “UserForm” as shown in below image<br />
<img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-8GpDwgRMZTE/Vbnezawm3ZI/AAAAAAAAAeE/Ha3xd7Ea37g/s320/Macro2.PNG" width="320" height="133" /></p>
<p>Step3: Drag and drop the controls on the form (in this example:  3 Labels, 3 Text Boxes and 2 Buttons and set properties for Label1 to “Enter Product Name”, Label2 to “Enter Qty”, Label3 to “Enter Product Price”, Button1 to “AddNew Record” and Button2 to “Reset” in “Caption” under properties dialog box) follow below image.</p>
<p><a href="http://3.bp.blogspot.com/-VgXJUSX6CZI/VbnfENyhHLI/AAAAAAAAAeM/daS3l-wxp0Y/s320/Macro3.PNG"><img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-VgXJUSX6CZI/VbnfENyhHLI/AAAAAAAAAeM/daS3l-wxp0Y/s320/Macro3.PNG" width="320" height="220" /></a><br />
Step4: Now, Double click on “AddNew Record” button to write some code for inserting records to current sheet. Follow below screen image</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://2.bp.blogspot.com/-4P73Ga-DgBc/VbnfXxht0XI/AAAAAAAAAeU/f8UZtdhb6Dg/s320/Macro4.PNG" width="320" height="142" /></p>
<p>Step 5: Now, test the form by running it, click on Green Forward arrow symbol or by pressing function key “F5” (see below image)</p>
<p><img decoding="async" src="http://2.bp.blogspot.com/-oZoCMXStHeE/VbngHKsrD9I/AAAAAAAAAec/MFkKEXHgAq4/s320/Macro5.PNG" /><img loading="lazy" decoding="async" class="alignnone" src="http://2.bp.blogspot.com/-oZoCMXStHeE/VbngHKsrD9I/AAAAAAAAAec/MFkKEXHgAq4/s320/Macro5.PNG" width="320" height="60" /></p>
<p>Step 6: You’ll see following output after pressing F5 or clicking on green forward arrow<br />
<img decoding="async" src="http://2.bp.blogspot.com/-r3rkFqI6s8c/VbngXxw67AI/AAAAAAAAAek/P8xE0Yydxik/s320/Macro6.PNG" /><br />
Step 7: Enter a record as following and hit the “AddNew Record” Button. After this, one record is added to the sheet (sheet10 in this example)</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-_Zjbtr9B6hc/VbngndzXN1I/AAAAAAAAAes/AdpiFemVx-g/s320/Macro7.PNG" width="320" height="233" /></p>
<p>Step8: Now close the form by clicking on “X” it will take you to the design mode. And enter some code for “Reset” button for resetting all values. Follow below image. [double click on “Reset” button and add following code]</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-7IZOUCTgbVg/Vbng2Kw9RWI/AAAAAAAAAe0/Js6NnYZ14uU/s400/Macro8.PNG" width="400" height="108" /></p>
<p>Step9:  To call the User Form, which is created now, insert a button in the current sheet. [go to “Developer” tab and click -&gt; Insert -&gt; Command Button, drag on the sheet.   Follow below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://4.bp.blogspot.com/-ODVq076c3pU/VbnhRUA0OnI/AAAAAAAAAe8/X0UKy5fxChs/s320/Macro9.PNG" width="320" height="165" /></p>
<p>Step 10: Right click on “ User Form” button and select “View Code”</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://2.bp.blogspot.com/-9PTLOJsgOEU/VbnhgZm8gAI/AAAAAAAAAfE/9vGJIjaejw8/s320/Macro10.PNG" width="320" height="114" /></p>
<p>Step 11: Enter following a line of code in it. Follow below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://2.bp.blogspot.com/-xQUfQbR-tcc/VbnhtELbpbI/AAAAAAAAAfM/ba1k0Q_Xz5c/s320/Macro11.PNG" width="320" height="79" /></p>
<p>Step12: Now Click back on “Design Mode” to enable “User Form” button functioning, Click on “User Form” button and you’ll see following screen. [now start entering list of records]</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://4.bp.blogspot.com/-9s9BTHnY0ls/Vbnh6h0sb2I/AAAAAAAAAfU/9w1XACS7SRE/s320/Macro12.PNG" width="320" height="239" /></p>
<p>Step 13: Enter few more record by clicking on “AddNew Record” button and “Reset” for clearing all values.</p>
<p><img loading="lazy" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-XDWcI4fJ6ic/VbniJ9-sznI/AAAAAAAAAfc/BsbMCf1IT8U/s320/Macro13.PNG" width="320" height="175" /></p>
<p>That’s all for now! Thank you!</p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fcreating-an-excel-form-with-macros%2F&amp;linkname=Creating%20an%20Excel%20form%20with%20Macros" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fcreating-an-excel-form-with-macros%2F&amp;linkname=Creating%20an%20Excel%20form%20with%20Macros" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fcreating-an-excel-form-with-macros%2F&#038;title=Creating%20an%20Excel%20form%20with%20Macros" data-a2a-url="https://mitindia.in/creating-an-excel-form-with-macros/" data-a2a-title="Creating an Excel form with Macros"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/creating-an-excel-form-with-macros/">Creating an Excel form with Macros</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Clear Excel Sheet using VBA</title>
		<link>https://mitindia.in/clear-excel-sheet-using-vba/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Wed, 22 Jun 2016 10:56:17 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Excel Macros]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=154</guid>

					<description><![CDATA[<p>To clear the entered data in the current sheet of MS-Excel application follow the below simple steps. 1. Click on &#8221; Developer&#8221; tab in MS-Excel as shown in below image. 2. Click on &#8220;insert&#8221; and select &#8220;command Button&#8221;, follow image. 3. Drag the button on the sheet and right click on it, select properties-&#62;Caption-&#62;Enter text [&#8230;]</p>
<p>The post <a href="https://mitindia.in/clear-excel-sheet-using-vba/">Clear Excel Sheet using VBA</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To clear the entered data in the current sheet of MS-Excel application follow the below simple steps.</p>
<p>1. Click on &#8221; Developer&#8221; tab in MS-Excel as shown in below image.<img loading="lazy" decoding="async" class="alignnone" src="http://4.bp.blogspot.com/-a1w6ns-IGBg/VeLkLRLCD2I/AAAAAAAAAqw/f05VHqPU2Y0/s400/devtab.PNG" width="400" height="96" border="0" /></p>
<p>2. Click on &#8220;insert&#8221; and select &#8220;command Button&#8221;, follow image.<img loading="lazy" decoding="async" class="alignnone" src="http://2.bp.blogspot.com/--iwDmnCZDPY/VeLkt6lAlEI/AAAAAAAAAq4/HD_nOOCdrkY/s400/button.PNG" width="400" height="112" border="0" /><br />
3. Drag the button on the sheet and right click on it, select properties-&gt;Caption-&gt;Enter text like &#8220;Empty Sheet&#8221; <img loading="lazy" decoding="async" class="alignnone" src="http://4.bp.blogspot.com/-Kw_EhbKFBUc/VeLlNBysv5I/AAAAAAAAArE/FTd2zNkvFP4/s400/caption.PNG" width="400" height="212" border="0" /><br />
4. After inserting button, now right click on button-&gt;&#8221;View Code&#8221;, enter following code in it.</p>
<p><span style="color: #808080;">Private Sub CommandButton1_Click()</span><br />
<span style="color: #808080;">Dim resp As Integer</span><br />
<span style="color: #808080;">resp = MsgBox(&#8220;Are you sure you want to clear the sheet?&#8221;, _</span><br />
<span style="color: #808080;">vbYesNo + vbQuestion, &#8220;Clear Sheet&#8221;)</span><br />
<span style="color: #808080;">If resp = vbYes Then</span><br />
<span style="color: #808080;">    Cells.ClearContents</span><br />
<span style="color: #808080;">Else</span><br />
<span style="color: #808080;">  End If</span><br />
<span style="color: #808080;">End Sub</span></p>
<p>5. Now enter some data in the sheet, just refer below image.</p>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://3.bp.blogspot.com/-Sabp0d0X9eg/VeLmKybJsSI/AAAAAAAAArQ/bLsds_1r7Jw/s400/data.PNG" width="400" height="233" border="0" /></div>
<p>6. Now, press F5 or Run the form or Click on &#8220;Empty Sheet&#8221; button and you&#8217;ll see following image with confirm dialog box.</p>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-D_x0cVk4a3s/VeLmp1SGb0I/AAAAAAAAArY/h2HK4MRbTN8/s400/confirm.PNG" width="400" height="227" border="0" /></div>
<p>7. After pressing &#8220;Yes&#8221; button on the message box, all the data which was entered in the sheet is removed and sheet looks new! (see below image).</p>
<div class="separator"><img loading="lazy" decoding="async" class="alignnone" src="http://4.bp.blogspot.com/-BivIiXiyvCE/VeLnG2ZztXI/AAAAAAAAArg/HCozR7dRX6k/s400/empty.PNG" width="400" height="235" border="0" /></div>
<p>Note: To save your Macros for future use, please save as &#8220;Excel Macro-Enabled Workbook&#8221; in save as type drop down menu.</p>
<p>That&#8217;s all for now! Happy reading! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fclear-excel-sheet-using-vba%2F&amp;linkname=Clear%20Excel%20Sheet%20using%20VBA" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fclear-excel-sheet-using-vba%2F&amp;linkname=Clear%20Excel%20Sheet%20using%20VBA" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fclear-excel-sheet-using-vba%2F&#038;title=Clear%20Excel%20Sheet%20using%20VBA" data-a2a-url="https://mitindia.in/clear-excel-sheet-using-vba/" data-a2a-title="Clear Excel Sheet using VBA"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/clear-excel-sheet-using-vba/">Clear Excel Sheet using VBA</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
