<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-365005675344367933</id><updated>2011-11-27T15:49:10.239-08:00</updated><category term='Cell Formatting'/><category term='IndianCurrency Format'/><title type='text'>Learn VBA</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-5495274659623187964</id><published>2009-10-02T18:23:00.000-07:00</published><updated>2009-10-02T18:27:15.362-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IndianCurrency Format'/><title type='text'>Using Indian Currency Format</title><summary type='text'>Its not easy to create a format for indian currency, but its easy to use a macro which could be able to convert your number into the desired indian currency format.For using it follow the below steps:1. Open the sheet on which you want to apply the formatting2. right click on the sheet tab and select view code3. paste the below code in the white areaPrivate Sub Worksheet_Change(ByVal Target As </summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/5495274659623187964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/10/using-indian-currency-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/5495274659623187964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/5495274659623187964'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/10/using-indian-currency-format.html' title='Using Indian Currency Format'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-1584949301418429069</id><published>2009-09-27T05:56:00.000-07:00</published><updated>2009-09-27T05:57:11.251-07:00</updated><title type='text'>Format the selected range dependent on each cell value</title><summary type='text'>Sub Ifcondition()ActiveSheet.ActivateSelection.ActivateFor Each c In SelectionCell_Value = c.ValueIf Cell_Value = 1 Then    With c        .Font.Bold = True        .Font.ColorIndex = 15        .Interior.ColorIndex = 3        .Interior.Pattern = xlSolid    End WithEnd IfIf Cell_Value = 2 Then    With c        .Font.Bold = True        .Font.ColorIndex = 5        .Interior.ColorIndex = 13        .</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/1584949301418429069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/09/format-selected-range-dependent-on-each.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/1584949301418429069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/1584949301418429069'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/09/format-selected-range-dependent-on-each.html' title='Format the selected range dependent on each cell value'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-7136122943609636287</id><published>2009-09-27T05:55:00.001-07:00</published><updated>2009-09-27T05:55:50.109-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cell Formatting'/><title type='text'>Cell Formatting on the active cell based on the cell value</title><summary type='text'>I am trying to write an If condition statement, where, if the value is true, then macro 1 should run and if the value is false, then macro 2 should run. I don't want it to be dependent on any one cell.can anyone help? Your help is truly appreciated :) Aniruddha - Orkut UserConsidering the code you want to run is for cell formatting, you can use the below code.Sub Ifcondition_1cell()</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/7136122943609636287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/09/cell-formatting-on-active-cell-based-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/7136122943609636287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/7136122943609636287'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/09/cell-formatting-on-active-cell-based-on.html' title='Cell Formatting on the active cell based on the cell value'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-3932181481594357281</id><published>2009-02-28T03:25:00.000-08:00</published><updated>2009-02-28T03:34:02.440-08:00</updated><title type='text'>Working with Loops</title><summary type='text'>Why we use Loops in VBA?The purpose of a loop is to get Excel to repeat a piece of code a certain number of times. How many times the code gets repeated can be specified as a fixed number (e.g. do this 10 times), or as a variable (e.g. do this for as many times as there are rows of data), or some specific condition got satisfied(e.g. a cell contains value greater than 50).Loops can be constructed</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/3932181481594357281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/working-with-loops.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/3932181481594357281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/3932181481594357281'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/working-with-loops.html' title='Working with Loops'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-3011570914278724010</id><published>2009-02-21T07:06:00.000-08:00</published><updated>2009-02-21T07:10:37.050-08:00</updated><title type='text'>Format a Cell</title><summary type='text'>For Formatting a cell for Medium Border on the cell, With White color of Text, Bold style and Black base of the cell, we can apply the following code:Sheet3.Cells(1, 1).BorderAround xlContinuous, xlMedium, 1Sheet3.Cells(1, 1).Interior.ColorIndex = 1Sheet3.Cells(1, 1).Font.Bold = TrueSheet3.Cells(1, 1).Font.Color = vbWhite</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/3011570914278724010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/format-cell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/3011570914278724010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/3011570914278724010'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/format-cell.html' title='Format a Cell'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-1591897719371541490</id><published>2009-02-21T06:42:00.000-08:00</published><updated>2009-02-21T06:44:31.192-08:00</updated><title type='text'>Assigning Value of a cell to some variable</title><summary type='text'>Say we want to assign the value of a cell to variable 'A' thenIf your sheet is activatedFirst MethodA = Range("A1").ValueSecond MethodA = cells(1,1).ValueIf sheet is not activatedFirst MethodA = Sheet1.Range("A1").ValueSecond MethodA = Sheet1.Cells(1,1).Value</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/1591897719371541490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/assigning-value-of-cell-to-some.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/1591897719371541490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/1591897719371541490'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/assigning-value-of-cell-to-some.html' title='Assigning Value of a cell to some variable'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-8159152352014608973</id><published>2009-02-21T06:41:00.000-08:00</published><updated>2009-02-21T06:42:17.544-08:00</updated><title type='text'>Inserting Value in a Cell</title><summary type='text'>If your sheet is activatedFirst MethodRange("A1").Value = "Value"Second Methodcells(1,1).Value = "Value"If sheet is not activatedFirst MethodSheet1.Range("A1").Value = "Value"Second MethodSheet1.Cells(1,1).Value = "Value"</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/8159152352014608973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/inserting-value-in-cell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/8159152352014608973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/8159152352014608973'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/inserting-value-in-cell.html' title='Inserting Value in a Cell'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-1751169051832807887</id><published>2009-02-21T06:33:00.000-08:00</published><updated>2009-02-21T06:38:35.680-08:00</updated><title type='text'>Selecting a cell - VBA Code</title><summary type='text'>If your sheet is activatedFirst MethodRange("A1").SelectSecond Methodcells(1,1).SelectIf sheet is not activatedFirst MethodSheet1.Range("A1").SelectSecond MethodSheet1.Cells(1,1).Select</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/1751169051832807887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/selecting-cell-vba-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/1751169051832807887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/1751169051832807887'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/selecting-cell-vba-code.html' title='Selecting a cell - VBA Code'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-6156409344028369503</id><published>2009-02-19T22:29:00.000-08:00</published><updated>2009-02-19T22:36:01.078-08:00</updated><title type='text'>Copy data from 1 column to another</title><summary type='text'>help required in VBA macrohi guyss.. need some helpI want the VBA code to search the column (F) and copy the value that is less than 0  to column (B), suppose: I have a negetive value in (F6) I want that value to be copied in (B6).. and this should b done with every negetive value, and the remaining will stay untouchedAsked by: USer of OrkutSolution:This macro will work for sheet1 and for column</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/6156409344028369503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/copy-data-from-1-column-to-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6156409344028369503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6156409344028369503'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/copy-data-from-1-column-to-another.html' title='Copy data from 1 column to another'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-5786087118645103124</id><published>2009-02-19T22:21:00.001-08:00</published><updated>2009-02-19T22:22:42.076-08:00</updated><title type='text'>Loading and Unloading Userform</title><summary type='text'>For Loading userform1UserForm1.ShowFor unloading userform1Unload UserForm1</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/5786087118645103124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/loading-and-unloading-userform.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/5786087118645103124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/5786087118645103124'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/loading-and-unloading-userform.html' title='Loading and Unloading Userform'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-6762931970548968540</id><published>2009-02-19T22:18:00.000-08:00</published><updated>2009-02-19T22:20:28.755-08:00</updated><title type='text'>Adding Items to Combo Box</title><summary type='text'>Below is the method to add individual items to combo boxComboBox1.AddItem "Sum"ComboBox1.AddItem "Product"</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/6762931970548968540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/adding-items-to-combo-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6762931970548968540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6762931970548968540'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/adding-items-to-combo-box.html' title='Adding Items to Combo Box'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-784685942215208966</id><published>2009-02-16T21:42:00.000-08:00</published><updated>2009-02-16T21:45:00.728-08:00</updated><title type='text'>How to Reverse characters of a string</title><summary type='text'>Sub REVWORDS()N = InputBox("N:")Dim u(0 To 100) As String          'Defining ArrayA = Len(N)If A &gt; 100 ThenMsgBox ("STRING EXCEEDING THE DEFINED CHARACTER LENGTH OF 100")GoTo 10                'Jumping on some given labeled statementEnd IfSheet1.Cells(1, 12) = ""For i = 0 To A - 1u(i) = Left(Right(N, i + 1), 1)   Sheet1.Cells(1, 12) = Sheet1.Cells(1, 12) &amp; u(i)Next i10 End Sub</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/784685942215208966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/how-to-reverse-characters-of-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/784685942215208966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/784685942215208966'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/how-to-reverse-characters-of-string.html' title='How to Reverse characters of a string'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-6240716473624140726</id><published>2009-02-16T21:41:00.001-08:00</published><updated>2009-02-16T21:42:14.013-08:00</updated><title type='text'>COUNTING NUMBER OF RECORDS IN SOURCE DATA</title><summary type='text'>Sub countrecord()'COUNTING NUMBER OF RECORDS IN SOURCE DATAG = 1Do Until Sheet6.Cells(G, 1) = ""G = G + 1LoopH = G - 1 'H is the number of records in the source dataEnd Sub</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/6240716473624140726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/counting-number-of-records-in-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6240716473624140726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6240716473624140726'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/counting-number-of-records-in-source.html' title='COUNTING NUMBER OF RECORDS IN SOURCE DATA'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-7006933270784481055</id><published>2009-02-14T00:08:00.000-08:00</published><updated>2009-02-14T00:12:11.001-08:00</updated><title type='text'>Generate a series of N numbers through user input</title><summary type='text'>Sub series_1_to_n()A = InputBox("Enter the last number of series (N):")For I = 1 To ASheet1.Cells(I, 1) = INext IEnd SubThis will result in a series from 1 to N in cell A1 upto the Nth row of column A.For further query or training on Excel and/or VBA, please feel free to contact at info@exceltechconsultant.comexceltechindia@gmail.com</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/7006933270784481055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/generate-series-of-n-numbers-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/7006933270784481055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/7006933270784481055'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/generate-series-of-n-numbers-through.html' title='Generate a series of N numbers through user input'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-8011566276766974469</id><published>2009-02-14T00:05:00.000-08:00</published><updated>2009-02-14T00:08:02.370-08:00</updated><title type='text'>Generating series from 1 to 50</title><summary type='text'>This is an example of "For Loop"Sub series_1_to_50()A = 50For I = 1 To ASheet1.Cells(I, 1) = INext IEnd SubThis will result in a series from 1 to 50 in cell A1 to A50.For further query or training on Excel and/or VBA, please feel free to contact at info@exceltechconsultant.comexceltechindia@gmail.com</summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/8011566276766974469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/generating-series-from-1-to-50.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/8011566276766974469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/8011566276766974469'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/generating-series-from-1-to-50.html' title='Generating series from 1 to 50'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-6041150362659524986</id><published>2009-02-13T23:40:00.000-08:00</published><updated>2009-02-14T00:00:36.694-08:00</updated><title type='text'>Adding two numbers through user input</title><summary type='text'>Press Alt + F11 key for VBA editor, where you could write your code.Goto insert and select module. Start typing the below code for addition of two numbers;Sub Add()a = InputBox("Enter first number:")b = InputBox("Enter second number:")c = a + b Sheet1.Cells(1, 1) = cEnd SubNow press Alt + F8 to open macro window. Select 'Add' in the window and click on Run.An inputbox will appear, which will ask </summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/6041150362659524986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/adding-two-numbers-through-user-input.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6041150362659524986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/6041150362659524986'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/adding-two-numbers-through-user-input.html' title='Adding two numbers through user input'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-365005675344367933.post-5553326242513892874</id><published>2009-02-13T23:30:00.000-08:00</published><updated>2009-02-14T00:01:48.706-08:00</updated><title type='text'>For adding two numbers and printing the result in cell A1 of sheet1 of your workbook</title><summary type='text'>Press Alt + F11 key for VBA editor, where you could write your code.Goto insert and select module.start typing the below code for addition of two numbers;Sub Add()a = 2b = 3c = a + bSheet1.Cells(1, 1) = cEnd SubNow press Alt + F8 to open macro window. Select 'Add' in the window and click on Run.Cell A1 of sheet1 will show 5 as a result.For further query or training on Excel and/or VBA, please </summary><link rel='replies' type='application/atom+xml' href='http://learnvba.blogspot.com/feeds/5553326242513892874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnvba.blogspot.com/2009/02/for-adding-two-numbers-and-printing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/5553326242513892874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/365005675344367933/posts/default/5553326242513892874'/><link rel='alternate' type='text/html' href='http://learnvba.blogspot.com/2009/02/for-adding-two-numbers-and-printing.html' title='For adding two numbers and printing the result in cell A1 of sheet1 of your workbook'/><author><name>Vitesh</name><uri>http://www.blogger.com/profile/11341237591070383663</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_S8SxwbWG1uA/SFI3OqXLJsI/AAAAAAAABHE/Pm6XHQfvxgw/S220/20070617397.jpg'/></author><thr:total>0</thr:total></entry></feed>
