<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Sequence number generation</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sequence-number-generation/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 18:10:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Looping to create new workbooks using a set &#8220;transaction&#8221; number</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/looping-to-create-new-workbooks-using-a-set-transaction-number/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/looping-to-create-new-workbooks-using-a-set-transaction-number/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 22:49:31 +0000</pubDate>
		<dc:creator>McNitro</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Excel workbooks]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[Microsoft Excel 2003]]></category>
		<category><![CDATA[Sequence number generation]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m playing around a bit and can&#8217;t figure out why the following code does not save a total of 5 files in My Documents(default) The files should be named in a sequence of 1 &#8211; 5 (In my Excel spreadsheet (A1)=1 and (A4)=5) The code works once through, but when &#8220;.SaveAs Filename:=Start&#8221; comes back around [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m playing around a bit and can&#8217;t figure out why the following code does not save a total of 5 files in My Documents(default)</p>
<p>The files should be named in a sequence of 1 &#8211; 5 (In my Excel spreadsheet (A1)=1 and (A4)=5)</p>
<p>The code works once through, but when &#8220;.SaveAs Filename:=Start&#8221; comes back around the second time Excel asks if I want to overwrite file &#8220;1.xls&#8221; b/c it already exists.  Shouldn&#8217;t the below coding allow Excel to save the next file as &#8220;2.xls&#8221;, then &#8220;3.xls&#8221;, and so on?</p>
<p>Sub NewTest()</p>
<p>Start = Workbooks(&#8220;Loop Test.xls&#8221;).Worksheets(&#8220;Sheet1&#8243;).Range(&#8220;A1&#8243;).Value<br />
Finish = Workbooks(&#8220;Loop Test.xls&#8221;).Worksheets(&#8220;Sheet1&#8243;).Range(&#8220;A4&#8243;).Value<br />
Do Until Start = Finish<br />
    Set NewBook = Workbooks.Add<br />
    With NewBook<br />
        .SaveAs Filename:=Start<br />
        Workbooks(Start &#038; &#8220;.xls&#8221;).Close SaveChanges:=True<br />
    End With<br />
    Workbooks(&#8220;Loop Test.xls&#8221;).Worksheets(&#8220;Sheet1&#8243;).Range(&#8220;A1&#8243;).Value = Start + 1<br />
    Workbooks(&#8220;Loop Test.xls&#8221;).Save<br />
Loop<br />
End Sub</p>
<p>Interested to hear an answer.</p>
<p>Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/looping-to-create-new-workbooks-using-a-set-transaction-number/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to generate sequece number in an existing table</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-generate-sequece-number-in-an-existing-table/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-generate-sequece-number-in-an-existing-table/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 04:20:07 +0000</pubDate>
		<dc:creator>23081984</dc:creator>
				<category><![CDATA[Data marts]]></category>
		<category><![CDATA[Global Data Mart]]></category>
		<category><![CDATA[International Data Mart]]></category>
		<category><![CDATA[Sequence number generation]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We are having two datamart one is GDM and other is IDM. Now what to do: 1)Establish a unique royalty_transaction_id in GDM.this should be assigned to every single sales record when inserted in Global_sales_table. 2)Established a reversed royalty transaction id in GDm.This should be assigned to reversed sales transaction and it should point to the [...]]]></description>
				<content:encoded><![CDATA[<p>We are having two datamart one is GDM and other is IDM.<br />
Now what to do:</p>
<p>1)Establish a unique royalty_transaction_id in GDM.this should be assigned to every single sales record when inserted in Global_sales_table.</p>
<p>2)Established a reversed royalty transaction id in GDm.This should be assigned to reversed sales transaction and it should point to the trasaction id of the original sales transaction.</p>
<p>3)Estalish a sales transaction id in GDM .The same sales transaction id should be assigned to the original sales transaction,to all the revrsed sales transaction and all the reporocessed sales transaction to group them all under one sales transaction id.</p>
<p>4)The royalty transaction id,reversed royalty transaction id ,sales record key should be passed fro GDM to IDM.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-generate-sequece-number-in-an-existing-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/16 queries in 0.021 seconds using memcached
Object Caching 388/426 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 18:11:52 -->