{"id":471,"date":"2013-03-03T06:25:09","date_gmt":"2013-03-03T06:25:09","guid":{"rendered":"http:\/\/excelvbatutor.com\/?page_id=471"},"modified":"2020-04-23T10:56:37","modified_gmt":"2020-04-23T10:56:37","slug":"excel-vba-lesson-19-range-object","status":"publish","type":"page","link":"https:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-19-range-object\/","title":{"rendered":"Excel VBA Lesson 19: The  Range Object in Excel VBA"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong><a href=\"http:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-18-excel-vba-objects\/\">&lt;&lt;Lesson 18&gt;&gt;<\/a><a href=\"http:\/\/excelvbatutor.com\/index.php\/tutorial\/\"> [Contents] <\/a><a href=\"http:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-20-worksheet-object\/\">&lt;&lt;Lesson 20&gt;&gt;<\/a><\/strong><\/h4>\n\n\n\n<p>The Range object is one of the most important and most commonly used among the Excel VBA objects. In fact, we have dealt with the Range object in previous lessons. The Range object comprises some arguments and methods which can be used to perform certain tasks.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>19.1 The Select Method<\/strong><\/h4>\n\n\n\n<p>The Range object contains two arguments that specify a selected area on the spreadsheet. The syntax is<\/p>\n\n\n\n<p><strong>Range(starting_cell,Ending_ Cell)<\/strong><\/p>\n\n\n\n<p>For example, Range(&#8220;A1:C6&#8221;) means the specified range is from cell A1 to C6.<\/p>\n\n\n\n<p>To select the specified range, the syntax is<\/p>\n\n\n\n<p><strong>Range(&#8220;A1:C6&#8221;).Select<\/strong><\/p>\n\n\n\n<p>where select is a method of the Range object<\/p>\n\n\n\n<p><script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"9639157585\"><\/ins><br>\n<script><br \/>\n     (adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.1<\/strong><\/h4>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nRange(&#8220;A1:C6&#8221;).Select<br>\nEnd Sub<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19.2 The Columns Property<\/strong><\/h3>\n\n\n\n<p>The columns property of the Range object is to select certain columns in the particular range specified by the Range object.<\/p>\n\n\n\n<p>The syntax is<\/p>\n\n\n\n<p><strong>Range(starting_cell,Ending_ Cell).Columns(i).Select<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.2<\/strong><\/h4>\n\n\n\n<p>This example select column C in the range A1 to C6Private Sub CommandButton2_Click()<br>\nRange(&#8220;A1:C6&#8221;).Columns(3).Select<br>\nEnd Sub<\/p>\n\n\n\n<p>You can also use Cells(1,1) to Cells(6,3) instead of A1:C6, the syntax is<\/p>\n\n\n\n<p>Range(Cells(1,1),Cells(6,3)).Columns(3).Select<\/p>\n\n\n\n<p>* Notice that you don&#8217;t use double inverted commas and colon.<\/p>\n\n\n\n<p><script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"9639157585\"><\/ins><br>\n<script><br \/>\n     (adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><\/p>\n\n\n\n<p>The output is as shown in Figure 19.1<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"285\" height=\"337\" src=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg\" alt=\"Excel VBA\" class=\"wp-image-481\"\/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Figure 19.1<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19.3 Using With Range&#8230;&#8230;End With<\/strong><\/h3>\n\n\n\n<p>You can also format font the cells in a particular column in terms of type, color, bold, italic, underlined and size using the With Range&#8230;..End With Structure. It can also be used to format other Range properties like the background color. Using With Range&#8230;.End With structure can save time and make the code cleaner.<\/p>\n\n\n\n<p><strong>Example 19.3<\/strong><\/p>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nWith Range(&#8220;A1:C6&#8221;).Columns(2)<br>\n.Font.ColorIndex = 3<br>\n.Font.Bold = True<br>\n.Font.Italic = True<br>\n.Font.Underline = True<br>\n.Font.Name = &#8220;Times New Roman&#8221;<br>\n.Font.Size = 14<br>\n.Interior.Color = RGB(255, 255, 0)<\/p>\n\n\n\n<p>End With<\/p>\n\n\n\n<p>End Sub<\/p>\n\n\n\n<p>* Without using With Range&#8230;.End With, you need to write every line in full, like this<\/p>\n\n\n\n<p>Range(&#8220;A1:C6&#8221;).Columns(2).Font.ColorIndex = 3<\/p>\n\n\n\n<p>The output:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"267\" height=\"359\" src=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.2.jpg\" alt=\"vba_Figure15.2\" class=\"wp-image-483\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19.4 The Rows Property<\/strong><\/h3>\n\n\n\n<p>Basically the syntax for the Rows property is similar to that of the Columns property, you just need to replace Columns with rows.<\/p>\n\n\n\n<p>The syntax of selecting a row within a certain range is<\/p>\n\n\n\n<p><strong>Range(starting_cell,Ending_ Cell).Rows(i).Select<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.4<\/strong><\/h4>\n\n\n\n<p>This following code selects the third row within the range A1 to F3<\/p>\n\n\n\n<p>Private Sub CommandButton2_Click()<br>\nRange(&#8220;A1:F3&#8221;).Rows(3).Select<br>\nEnd Sub<\/p>\n\n\n\n<p>The output\n<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"292\" src=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.3.jpg\" alt=\"vba_Figure15.3\" class=\"wp-image-486\"\/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Figure 19.3<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.5: Using With Range&#8230;End With for Rows<\/strong><\/h4>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nWith Range(&#8220;A1:F3&#8221;).Rows(2)<br>\n.Font.ColorIndex = 3<br>\n.Font.Bold = True<br>\n.Font.Italic = True<br>\n.Font.Underline = True<br>\n.Font.Name = &#8220;Times New Roman&#8221;<br>\n.Font.Size = 14<br>\n.Interior.Color = RGB(255, 255, 0)<\/p>\n\n\n\n<p>End With<\/p>\n\n\n\n<p>End Sub<\/p>\n\n\n\n<p>The Output\n<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.4.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"290\" src=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.4.jpg\" alt=\"vba_Figure15.4\" class=\"wp-image-487\"\/><\/a><\/figure><\/div>\n\n\n\n<p><br>\n<strong>Figure 19.4<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19.5 Using the Set keyword to Declare Range<\/strong><\/h3>\n\n\n\n<p>We can write Excel VBA code that can specify a certain range of cells using the <strong>Set<\/strong> keyword and then perform certain tasks according to a set of conditions.<\/p>\n\n\n\n<p>In Example 15.6, we shall write the ExcelVBA code such that it can accept range input from the user and then change the mark to blue if it is more than or equal to 50 and change it to red if the mark is less than 50.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.6<\/strong><\/h4>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nDim rng, cell As Range, selectedRng As String<br>\nselectedRng = InputBox(&#8220;Enter your range&#8221;)<br>\nSet rng = Range(selectedRng)<br>\nFor Each cell In rng<br>\nIf cell.Value &gt;= 50 Then<br>\ncell.Font.ColorIndex = 5<br>\nElse<br>\ncell.Font.ColorIndex = 3<br>\nEnd If<br>\nNext cell<br>\nEnd Sub<\/p>\n\n\n\n<p><strong>Explanation:<\/strong><\/p>\n\n\n\n<p><em>The InputBox function is used to accept value from the users.<\/em><\/p>\n\n\n\n<p>rng and cell are declared as a Range variable using the Dim statement while selectedRng is declared as a string that receives input from the user.<\/p>\n\n\n\n<p>Once the input is obtained from the user, it is stored using the Set method and the Range function.<\/p>\n\n\n\n<p>For Each cell In rng &#8230;&#8230;Next cell is a loop that can iterate through the selected range, one cell at a time.<\/p>\n\n\n\n<p>The If&#8230;Then&#8230;Else statements are to specify the color of the font according to the range of values determined by the conditions.<\/p>\n\n\n\n<p>The Output<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.vbtutor.net\/Images\/progra_jan_30_2008_vba10.gif\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19.6 The Formula property<\/strong><\/h3>\n\n\n\n<p>You can use the Formula property of the Range object to write your own customized formula.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.7<\/strong><\/h4>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nRange(&#8220;A1:B3&#8221;).Columns(3).Formula = &#8220;=A1+B1&#8221;<br>\nEnd Sub<\/p>\n\n\n\n<p>In this example, the formula A1+B1 will be copied down column 3 (column C) from cell C1 to cell C3. The program automatically sums up the corresponding values down column A and column B and displays the results in column C, as shown in Figure 19.5<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.5.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"125\" src=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.5.jpg\" alt=\"vba_Figure15.5\" class=\"wp-image-526\"\/><\/a><\/figure><\/div>\n\n\n\n<p>The above example can also be rewritten and produces the same result as below:<\/p>\n\n\n\n<p>Range(&#8220;A1:B3&#8221;).Columns(3).Formula = &#8220;=Sum(A1:B1)&#8221;<br>\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"9639157585\"><\/ins><br>\n<script><br \/>\n     (adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><br>\nThere are many formulas in Excel VBA which we can use to simplify and speed up complex calculations. The formulas are categorized into Financial, Mathematical, Statistical, Date , Time and others. For example, in the statistical category, we have Average (Mean), Mode and Median<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.8<\/strong><\/h4>\n\n\n\n<p>In this example, the program computes the average of the corresponding values in column A and column B and displays the results in column C. For example, the mean of values in cell A1 and Cell B1 is computed and displayed in Cell C1. Subsequent means are automatically copied down Column C until cell C3.<\/p>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nRange(&#8220;A1:B3&#8221;).Columns(3).Formula = &#8220;=Average(A1:B1)\u201d<br>\nEnd Sub<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example 19.9: Mode<\/strong><\/h4>\n\n\n\n<p>In this example, the program computes the mode for every row in the range A1:E4 and displays them in column F. It also makes the font bold and red in color, as shown in Figure 15.6.<\/p>\n\n\n\n<p>Private Sub CommandButton1_Click()<br>\nRange(&#8220;A1:E4&#8221;).Columns(6).Formula = &#8220;=Mode(A1:E1)\u201d<br>\nRange(&#8220;A1:E4&#8221;).Columns(6).Font.Bold = True<br>\nRange(&#8220;A1:E4&#8221;).Columns(6).Font.ColorIndex = 3<br>\nEnd Sub<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.6.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"327\" src=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.6.jpg\" alt=\"vba_Figure15.6\" class=\"wp-image-527\"\/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><a href=\"http:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-18-excel-vba-objects\/\">&lt;&lt;Lesson 18&gt;&gt;<\/a><a href=\"http:\/\/excelvbatutor.com\/index.php\/tutorial\/\"> [Contents] <\/a><a href=\"http:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-20-worksheet-object\/\">&lt;&lt;Lesson 20&gt;&gt;<\/a><\/strong><\/h4>\n\n\n\n<h4 class=\"wp-block-heading\"><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>&lt;&lt;Lesson 18&gt;&gt; [Contents] &lt;&lt;Lesson 20&gt;&gt; The Range object is one of the most important and most commonly used among the Excel VBA objects. In fact, we have dealt with the Range object in previous lessons. The Range object comprises some arguments and methods which can be used to perform certain tasks. 19.1 The Select Method &hellip; <a href=\"https:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-19-range-object\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Excel VBA Lesson 19: The  Range Object in Excel VBA&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5012,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-471","page","type-page","status-publish","hentry","category-object"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Excel VBA Lesson 19: The Range Object in Excel VBA - Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor<\/title>\n<meta name=\"description\" content=\"This Excel VBA Lesson explains in details how to use the Range object properties in dealing with Excel VBA macro programming\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/excelvbatutor.com\/vba_lesson19.htm\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excel VBA Lesson 19: The Range Object in Excel VBA - Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor\" \/>\n<meta property=\"og:description\" content=\"This Excel VBA Lesson explains in details how to use the Range object properties in dealing with Excel VBA macro programming\" \/>\n<meta property=\"og:url\" content=\"https:\/\/excelvbatutor.com\/vba_lesson19.htm\" \/>\n<meta property=\"og:site_name\" content=\"Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-23T10:56:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"285\" \/>\n\t<meta property=\"og:image:height\" content=\"337\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-19-range-object\/\",\"url\":\"https:\/\/excelvbatutor.com\/vba_lesson19.htm\",\"name\":\"Excel VBA Lesson 19: The Range Object in Excel VBA - Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor\",\"isPartOf\":{\"@id\":\"https:\/\/excelvbatutor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/excelvbatutor.com\/vba_lesson19.htm#primaryimage\"},\"image\":{\"@id\":\"https:\/\/excelvbatutor.com\/vba_lesson19.htm#primaryimage\"},\"thumbnailUrl\":\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg\",\"datePublished\":\"2013-03-03T06:25:09+00:00\",\"dateModified\":\"2020-04-23T10:56:37+00:00\",\"description\":\"This Excel VBA Lesson explains in details how to use the Range object properties in dealing with Excel VBA macro programming\",\"breadcrumb\":{\"@id\":\"https:\/\/excelvbatutor.com\/vba_lesson19.htm#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/excelvbatutor.com\/vba_lesson19.htm\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/excelvbatutor.com\/vba_lesson19.htm#primaryimage\",\"url\":\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg\",\"contentUrl\":\"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg\",\"width\":285,\"height\":337},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/excelvbatutor.com\/vba_lesson19.htm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/excelvbatutor.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Excel VBA Lesson 19: The Range Object in Excel VBA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/excelvbatutor.com\/#website\",\"url\":\"https:\/\/excelvbatutor.com\/\",\"name\":\"Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor\",\"description\":\"Master Excel VBA with free tutorials, examples, and personalized guidance. Perfect for beginners and advanced users looking to automate Excel.\",\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Excel VBA Lesson 19: The Range Object in Excel VBA - Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor","description":"This Excel VBA Lesson explains in details how to use the Range object properties in dealing with Excel VBA macro programming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/excelvbatutor.com\/vba_lesson19.htm","og_locale":"en_US","og_type":"article","og_title":"Excel VBA Lesson 19: The Range Object in Excel VBA - Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor","og_description":"This Excel VBA Lesson explains in details how to use the Range object properties in dealing with Excel VBA macro programming","og_url":"https:\/\/excelvbatutor.com\/vba_lesson19.htm","og_site_name":"Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor","article_modified_time":"2020-04-23T10:56:37+00:00","og_image":[{"width":285,"height":337,"url":"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg","type":"image\/jpeg"}],"twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/excelvbatutor.com\/index.php\/excel-vba-lesson-19-range-object\/","url":"https:\/\/excelvbatutor.com\/vba_lesson19.htm","name":"Excel VBA Lesson 19: The Range Object in Excel VBA - Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor","isPartOf":{"@id":"https:\/\/excelvbatutor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/excelvbatutor.com\/vba_lesson19.htm#primaryimage"},"image":{"@id":"https:\/\/excelvbatutor.com\/vba_lesson19.htm#primaryimage"},"thumbnailUrl":"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg","datePublished":"2013-03-03T06:25:09+00:00","dateModified":"2020-04-23T10:56:37+00:00","description":"This Excel VBA Lesson explains in details how to use the Range object properties in dealing with Excel VBA macro programming","breadcrumb":{"@id":"https:\/\/excelvbatutor.com\/vba_lesson19.htm#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/excelvbatutor.com\/vba_lesson19.htm"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/excelvbatutor.com\/vba_lesson19.htm#primaryimage","url":"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg","contentUrl":"https:\/\/excelvbatutor.com\/wp-content\/uploads\/2013\/03\/vba_Figure15.1.jpg","width":285,"height":337},{"@type":"BreadcrumbList","@id":"https:\/\/excelvbatutor.com\/vba_lesson19.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/excelvbatutor.com\/"},{"@type":"ListItem","position":2,"name":"Excel VBA Lesson 19: The Range Object in Excel VBA"}]},{"@type":"WebSite","@id":"https:\/\/excelvbatutor.com\/#website","url":"https:\/\/excelvbatutor.com\/","name":"Learn Excel VBA Online \u2013 Step-by-Step Tutorials &amp; Courses | ExcelVBATutor","description":"Master Excel VBA with free tutorials, examples, and personalized guidance. Perfect for beginners and advanced users looking to automate Excel.","inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/pages\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/users\/5012"}],"replies":[{"embeddable":true,"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":38,"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/pages\/471\/revisions"}],"predecessor-version":[{"id":3463,"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/pages\/471\/revisions\/3463"}],"wp:attachment":[{"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/media?parent=471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/categories?post=471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelvbatutor.com\/index.php\/wp-json\/wp\/v2\/tags?post=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}