<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>Does anyone know how to create a loop?</title>
		<link>https://www.lotterypost.com/thread/241446</link>
		<atom:link href="https://www.lotterypost.com/rss/topic/241446" rel="self" type="application/rss+xml" />
		<description>Lottery Post Forum Topic: Does anyone know how to create a loop?</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Reply #9</title>
			<link>https://www.lotterypost.com/thread/241446/2382988</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2382988</guid>
			<pubDate>Tue, 24 Jan 2012 19:27:32 GMT</pubDate>
			<dc:creator>KnuckleHead</dc:creator>
			<description><![CDATA[<p>Afternoon all,<br /><br />To begin with, the column I want to remove the duplicates from is already sorted into an ascending order.<br /><br />Below is a simple and elegant solution that I found in my e-mail. (I was told that my attempt was to complicated.)<br /><br />Sub Duplicate_Remover<br /><br />Do While Not Selection.CellDisplay =<br /><br />Cell1 = .CellDisplay<br /><br />.MoveCellPointer $Down,1<br /><br />Cell2 = .CellDisplay<br /><br />If Cell1 = Cell2 Then<br /><br />.DeleteRows $Partial<br /><br />.MoveCellPointer $Up,1<br /><br />End If<br /><br />Loop<br /><br />End Sub<br /><br />The sub is... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2382988">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>KnuckleHead</category>
		</item>
		<item>
			<title>Reply #8</title>
			<link>https://www.lotterypost.com/thread/241446/2380786</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2380786</guid>
			<pubDate>Mon, 23 Jan 2012 02:04:26 GMT</pubDate>
			<dc:creator>KnuckleHead</dc:creator>
			<description><![CDATA[<p>Evening JADELottery,<br /><br />I downloaded the test file and discovered that the entire code should have been placed into 1 module instead of 5 different modules. I setup a test range for each of the different sheets. It initially threw me on the 1st test when only the 0 disappeared. Then I pre-selected the range and tried again. It worked on all of the different examples.<br /><br />Cool.<br /><br />I still don&#x27;t understand how to setup the loop I was originally working on, but this sub works great. And it does so i... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2380786">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>KnuckleHead</category>
		</item>
		<item>
			<title>Reply #7</title>
			<link>https://www.lotterypost.com/thread/241446/2380730</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2380730</guid>
			<pubDate>Mon, 23 Jan 2012 01:25:35 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>Discovered another little quirk, but it should not affect the results too drastically.<br /><br />Also, make sure you are copying and pasting all the lines of code, from Dim arry() As Double to End Function<br /><br />It might be the version of Excel as well that could be affecting the code run.<br /><br />Or you can download the test file here - http://www.jadexcode.com/RemoveDuplicatesTest.xls<br /><br />I don&#x27;t work with Excel VB that much either, just learned some of this yesterday and today.<br /><br />__________<br /><br />Dim arry() As... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2380730">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Reply #6</title>
			<link>https://www.lotterypost.com/thread/241446/2380694</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2380694</guid>
			<pubDate>Mon, 23 Jan 2012 01:03:58 GMT</pubDate>
			<dc:creator>KnuckleHead</dc:creator>
			<description><![CDATA[<p>Hello JADELottery,<br /><br />Thank you for the reply and the code.<br /><br />Not being an experienced Excel user, I may have placed the coding incorrectly. I created 5 user modules in the This Workbook section of the VBA editor and pasted each of the 5 sets into a separate module. After saving the file, I attempted to run the RemoveDuplicates Sub. It popped up a message box titled Microsoft Visual Basic for Application box.<br /><br />The message reads: Complile error: Sub or Function not defined.<br /><br />The problem is i... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2380694">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>KnuckleHead</category>
		</item>
		<item>
			<title>Reply #5</title>
			<link>https://www.lotterypost.com/thread/241446/2380258</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2380258</guid>
			<pubDate>Sun, 22 Jan 2012 18:51:43 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>We&#x27;ll post the complete, corrected code one more time just so you don&#x27;t have to copy two different sections.<br /><br />__________<br /><br />Dim arry() As Double<br /><br />Sub RemoveDuplicates()<br /><br />Randomize Timer<br /><br />Dim SelectedRange As String<br /><br />Dim RangeRowCount, r, i As Long<br /><br />SelectedRange = ActiveWindow.RangeSelection.Address<br /><br />RangeRowCount = Range(SelectedRange).Rows.Count<br /><br />ReDim arry(RangeRowCount) As Double<br /><br />For r = 1 To RangeRowCount<br /><br />arry(r) = Val(Range(SelectedRange).Cells(r, 1).Value... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2380258">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Reply #4</title>
			<link>https://www.lotterypost.com/thread/241446/2380022</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2380022</guid>
			<pubDate>Sun, 22 Jan 2012 16:10:28 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>did a copy and paste the the wrong code.<br /><br />the RemoveDuplicates sub has an error, see correction below.<br /><br />__________<br /><br />Sub RemoveDuplicates()<br /><br />Randomize Timer<br /><br />Dim SelectedRange As String<br /><br />Dim RangeRowCount, r, i As Long<br /><br />SelectedRange = ActiveWindow.RangeSelection.Address<br /><br />RangeRowCount = Range(SelectedRange).Rows.Count<br /><br />ReDim arry(RangeRowCount) As Double<br /><br />For r = 1 To RangeRowCount<br /><br />arry(r) = Val(Range(SelectedRange).Cells(r, 1).Value)<br /><br />Next<br /><br />QuickSort 1, Ra... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2380022">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Reply #3</title>
			<link>https://www.lotterypost.com/thread/241446/2379961</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2379961</guid>
			<pubDate>Sun, 22 Jan 2012 15:25:39 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>You could try this. It will work for any value, decimal or integer.<br /><br />__________<br /><br />Dim arry() As Double<br /><br />Sub RemoveDuplicates()<br /><br />Randomize Timer<br /><br />Dim SelectedRange As String<br /><br />Dim RangeRowCount, r, i As Long<br /><br />SelectedRange = ActiveWindow.RangeSelection.Address<br /><br />RangeRowCount = Range(SelectedRange).Rows.Count<br /><br />ReDim arry(RangeRowCount) As Double<br /><br />For r = 1 To RangeRowCount<br /><br />arry(r) = Val(Range(SelectedRange).Cells(r, 1).Value)<br /><br />Next<br /><br />QuickSort 1, RangeRowCoun... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2379961">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Reply #2</title>
			<link>https://www.lotterypost.com/thread/241446/2378714</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2378714</guid>
			<pubDate>Sat, 21 Jan 2012 16:34:46 GMT</pubDate>
			<dc:creator>KnuckleHead</dc:creator>
			<description><![CDATA[<p>Morning time*treat,<br /><br />I got the sub last night. It took me a little while to comprehend which were the input and output columns. Once understood, it works great for 0 to 9 numbers.<br /><br />Let me back up a bit. I have a file that contains several different games, from Pick 3 to Bonus games. I designed my sub to be generic so that it would work on different sheets and from different beginning locations. That&#x27;s why there are no cell address in it. As long as the calling sub has positioned the cell poi... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446/2378714">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>KnuckleHead</category>
		</item>
		<item>
			<title>Reply #1</title>
			<link>https://www.lotterypost.com/thread/241446/2377822</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446/2377822</guid>
			<pubDate>Fri, 20 Jan 2012 22:19:29 GMT</pubDate>
			<dc:creator>time*treat</dc:creator>
			<description><![CDATA[<p>I don&#x27;t know if this hurt to write, but it certainly hurt to read.<br /><br />I avoid the macro recorder whenever possible.<br /><br />Fast code can be hard to read, but hard to read code isn&#x27;t always fast.<br /><br />Thus:<br /><br />https://www.lotterypost.com/blogentry/62539</p>]]></description>
			<category>time*treat</category>
		</item>
		<item>
			<title>Does anyone know how to create a loop?</title>
			<link>https://www.lotterypost.com/thread/241446</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/241446</guid>
			<pubDate>Fri, 20 Jan 2012 17:41:59 GMT</pubDate>
			<dc:creator>KnuckleHead</dc:creator>
			<description><![CDATA[<p>Morning all,<br /><br />Does anyone know how to take the below sub and create a loop with it?<br /><br />Begin with this column of numbers:<br /><br />0<br /><br />1<br /><br />3<br /><br />3<br /><br />3<br /><br />4<br /><br />4<br /><br />6<br /><br />6<br /><br />8<br /><br />8<br /><br />9<br /><br />End with this column of numbers:<br /><br />0<br /><br />1<br /><br />3<br /><br />4<br /><br />6<br /><br />8<br /><br />9<br /><br />Here&#x27;s a sub I&#x27;ve created. All of the sections work, but I don&#x27;t know how to create the loop to keep it running.<br /><br />Sub Duplicate_Remover<br /><br />&#x27; This sub removes the duplicate numbers from a pre-selected single row range.<br /><br />&#x27;<br /><br />&#x27;be... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/241446">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>KnuckleHead</category>
		</item>
	</channel>
</rss>

