<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using a For Loop in a Macro</title>
	<atom:link href="http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/</link>
	<description>Excel Tips and Tricks for All Levels</description>
	<lastBuildDate>Thu, 05 Apr 2012 00:18:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: mohideen thasthahir</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1668</link>
		<dc:creator>mohideen thasthahir</dc:creator>
		<pubDate>Wed, 14 Dec 2011 01:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1668</guid>
		<description>I tried to recreate this macro. In a blank worksheet I hit ‘Alt’ F11 to open VB, then I out the code sheet1
I pasted the  TestLoop code:
Sub TestLoop()
For x = 1 to 10
Cells(x,1) = “Updated”
next x
End Sub

first am fill the valyes (&quot; A!&quot; to &quot;A10&quot;)
I then run the codes after then the value is not showing that sheet1. nothing happened.
I started with my pointer at A1 

Any idea of what went wrong. Thanks.</description>
		<content:encoded><![CDATA[<p>I tried to recreate this macro. In a blank worksheet I hit ‘Alt’ F11 to open VB, then I out the code sheet1<br />
I pasted the  TestLoop code:<br />
Sub TestLoop()<br />
For x = 1 to 10<br />
Cells(x,1) = “Updated”<br />
next x<br />
End Sub</p>
<p>first am fill the valyes (&#8221; A!&#8221; to &#8220;A10&#8243;)<br />
I then run the codes after then the value is not showing that sheet1. nothing happened.<br />
I started with my pointer at A1 </p>
<p>Any idea of what went wrong. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Numba Wann</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1657</link>
		<dc:creator>Numba Wann</dc:creator>
		<pubDate>Sat, 19 Nov 2011 15:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1657</guid>
		<description>Help!!!

I would like cells (a1  b1  c1 d1) to count incrementally by 1 from   0-9  -  (together they count from 0000-9999).  While counting, if cell  k20 = 1 or more, the counting stops.  To continue counting I press &quot;return&quot;.</description>
		<content:encoded><![CDATA[<p>Help!!!</p>
<p>I would like cells (a1  b1  c1 d1) to count incrementally by 1 from   0-9  &#8211;  (together they count from 0000-9999).  While counting, if cell  k20 = 1 or more, the counting stops.  To continue counting I press &#8220;return&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1625</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 17 Oct 2011 16:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1625</guid>
		<description>I want to copy each row 5x and then put in relevant data to each line. This may be needed for 20 lines (x4 each) or 2000 lines (x4 each) depending on the required task in hand.
Any help on this will save me many headaches.</description>
		<content:encoded><![CDATA[<p>I want to copy each row 5x and then put in relevant data to each line. This may be needed for 20 lines (x4 each) or 2000 lines (x4 each) depending on the required task in hand.<br />
Any help on this will save me many headaches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalai</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1540</link>
		<dc:creator>Kalai</dc:creator>
		<pubDate>Mon, 18 Jul 2011 06:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1540</guid>
		<description>Hi, 

I want to convert column to text using macro, Currently i am using statement like below,

Selection.Value = Selection.Offset(0, -223).Value &amp; &quot;;&quot; &amp; Selection.Offset(0, -222).Value &amp; &quot;;&quot; &amp; Selection.Offset(0,.......

But the issue is i need to write the statement for all the columns all the way from -223 to 0 and the function &quot;&amp;&quot; also limited to 220 column. is there any way to get out of this.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I want to convert column to text using macro, Currently i am using statement like below,</p>
<p>Selection.Value = Selection.Offset(0, -223).Value &amp; &#8220;;&#8221; &amp; Selection.Offset(0, -222).Value &amp; &#8220;;&#8221; &amp; Selection.Offset(0,&#8230;&#8230;.</p>
<p>But the issue is i need to write the statement for all the columns all the way from -223 to 0 and the function &#8220;&amp;&#8221; also limited to 220 column. is there any way to get out of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1445</link>
		<dc:creator>john</dc:creator>
		<pubDate>Thu, 07 Apr 2011 14:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1445</guid>
		<description>I would need a little more detail of what you&#039;re trying to do... list what in descending order?  Do you want the results sorted?</description>
		<content:encoded><![CDATA[<p>I would need a little more detail of what you&#8217;re trying to do&#8230; list what in descending order?  Do you want the results sorted?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TY</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1443</link>
		<dc:creator>TY</dc:creator>
		<pubDate>Thu, 07 Apr 2011 10:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1443</guid>
		<description>I need to write a macro that will count and return the numbers between the zeros and list them in descending order.

Any advice? 

0.000
700.427
700.435
0.000
701.443
0.000
702.389
702.395
702.398
702.433
0.000
703.346
703.348
703.350
703.351
703.355
703.368
703.370
703.376
703.382
703.385
703.389
0.000</description>
		<content:encoded><![CDATA[<p>I need to write a macro that will count and return the numbers between the zeros and list them in descending order.</p>
<p>Any advice? </p>
<p>0.000<br />
700.427<br />
700.435<br />
0.000<br />
701.443<br />
0.000<br />
702.389<br />
702.395<br />
702.398<br />
702.433<br />
0.000<br />
703.346<br />
703.348<br />
703.350<br />
703.351<br />
703.355<br />
703.368<br />
703.370<br />
703.376<br />
703.382<br />
703.385<br />
703.389<br />
0.000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: purna chandra sahu</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1344</link>
		<dc:creator>purna chandra sahu</dc:creator>
		<pubDate>Mon, 27 Dec 2010 06:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1344</guid>
		<description>Kindly suggest me for build a macro program in excel to find a duplicate data with in excell sheet</description>
		<content:encoded><![CDATA[<p>Kindly suggest me for build a macro program in excel to find a duplicate data with in excell sheet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahil</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-1072</link>
		<dc:creator>Rahil</dc:creator>
		<pubDate>Mon, 29 Mar 2010 08:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-1072</guid>
		<description>I tried to recreate this macro. In a blank worksheet I hit ‘Alt’ F11 to open VB, then I clicked Insert Module
when the new module opened, I pasted the subroutine data for TestLoop:
Sub TestLoop()
For x = 1 to 10
Cells(x,1) = “Updated”
next x
End Sub

I then closed module and VB and went to Macros
I selected TestLoop and then Run but nothing happened.


Then i Changed the string to valriable name i.e

Sub TestLoop()
     For x = 1 To 10
           Cells(x, 1) = x
           
     Next x
End Sub

Wtih this it prints the value of x which starts from 1 to 10 in first column.

Appriciated the help provided, Thanks  EH</description>
		<content:encoded><![CDATA[<p>I tried to recreate this macro. In a blank worksheet I hit ‘Alt’ F11 to open VB, then I clicked Insert Module<br />
when the new module opened, I pasted the subroutine data for TestLoop:<br />
Sub TestLoop()<br />
For x = 1 to 10<br />
Cells(x,1) = “Updated”<br />
next x<br />
End Sub</p>
<p>I then closed module and VB and went to Macros<br />
I selected TestLoop and then Run but nothing happened.</p>
<p>Then i Changed the string to valriable name i.e</p>
<p>Sub TestLoop()<br />
     For x = 1 To 10<br />
           Cells(x, 1) = x</p>
<p>     Next x<br />
End Sub</p>
<p>Wtih this it prints the value of x which starts from 1 to 10 in first column.</p>
<p>Appriciated the help provided, Thanks  EH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Automobile India</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-933</link>
		<dc:creator>Automobile India</dc:creator>
		<pubDate>Mon, 02 Nov 2009 01:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-933</guid>
		<description>I would like to Loop this macro until their is no more data in the report. Does anyone know how to do it?</description>
		<content:encoded><![CDATA[<p>I would like to Loop this macro until their is no more data in the report. Does anyone know how to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Misterpiz</title>
		<link>http://excelhints.com/2008/10/12/using-a-for-loop-in-a-macro/comment-page-1/#comment-931</link>
		<dc:creator>Misterpiz</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://excelhints.com/?p=192#comment-931</guid>
		<description>Hello, I am looking for a macro that will take data from yesterday, subtract todays and give me the differece in a specific cell.  I need to run this for 10 different columns, with 6 different categories (Total, Major, Critical, Minor, Internal, and Admin).  I would appreciate any and all help

Thank you</description>
		<content:encoded><![CDATA[<p>Hello, I am looking for a macro that will take data from yesterday, subtract todays and give me the differece in a specific cell.  I need to run this for 10 different columns, with 6 different categories (Total, Major, Critical, Minor, Internal, and Admin).  I would appreciate any and all help</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

