<?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>Excel - Creating Pick 3 and Pick 4 Combinations VBA</title>
		<link>/blogentry/40102</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/40102" rel="self" type="application/rss+xml" />
		<description>winsumloosesum's Blog: Excel - Creating Pick 3 and Pick 4 Combinations VBA</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Original Blog Entry: Excel - Creating Pick 3 and Pick 4 Combinations VBA</title>
			<link>/blogentry/40102</link>
			<guid isPermaLink="true">/blogentry/40102</guid>
			<pubDate>Sat, 24 Apr 2010 13:44:16 GMT</pubDate>
			<dc:creator>winsumloosesum</dc:creator>
			<description><![CDATA[<p>Below is a link for creating 1,000 Pick 3 combinations and 10,000 Pick 4 combinations:<br /><br />http://www.box.net/shared/t9ktq6klm5<br /><br />Thanks to GillesD at lotto649 forum.<br /><br />=====================================================<br /><br />Pick 4 Code:<br /><br />Option Explicit<br /><br />Dim A As Integer, B As Integer, C As Integer, D As Integer<br /><br />Dim X As Double<br /><br />Sub CombininationsPick4()<br /><br />Columns( A:E ).Select<br /><br />Selection.ClearContents<br /><br />Range( G1 ).Select<br /><br />&#x27; Generates all combinations for a pick-4 lottery<br /><br />Range( A1 ).Select<br /><br />X = 1<br /><br />For A = 0 To 9<br /><br />For B = 0 To 9<br /><br />For C = 0 To 9<br /><br />For D = 0 To 9<br /><br />ActiveCell.Offset(X, 0).Value = X<br /><br />ActiveCell.Offset(X, 1).Value = A<br /><br />ActiveCell.Offset(X, 2).Value = B<br /><br />ActiveCell.Offset(X, 3).Value = C<br /><br />ActiveCell.Offset(X, 4).Value = D<br /><br />X = X + 1<br /><br />Next D<br /><br />Next C<br /><br />Next B<br /><br />Next A<br /><br />End Sub<br /><br />===============================================<br /><br />Pick 3 Code:<br /><br />Option Explicit<br /><br />Dim A As Integer, B As Integer, C As Integer<br /><br />Dim X As Double<br /><br />Sub CombininationsPick3()<br /><br />Columns( A:D ).Select<br /><br />Selection.ClearContents<br /><br />Range( G1 ).Select<br /><br />&#x27; Generates all combinations for a pick-3 lottery<br /><br />Range( A1 ).Select<br /><br />X = 1<br /><br />For A = 0 To 9<br /><br />For B = 0 To 9<br /><br />For C = 0 To 9<br /><br />ActiveCell.Offset(X, 0).Value = X<br /><br />ActiveCell.Offset(X, 1).Value = A<br /><br />ActiveCell.Offset(X, 2).Value = B<br /><br />ActiveCell.Offset(X, 3).Value = C<br /><br />X = X + 1<br /><br />Next C<br /><br />Next B<br /><br />Next A<br /><br />End Sub<br /><br />===========================================================<br /><br />... &#x5b;&#xa0;<a href="/blogentry/40102">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>winsumloosesum</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/40102</wfw:comment>
		</item>
	</channel>
</rss>

