PC Review


Reply
Thread Tools Rate Thread

Created automatically sequence numbers

 
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      14th Jun 2007
How can I create an automatically sequernce numbers?.
The program I have create an automatically database from the column "B" to
column "N". However, everytime I have the data written I have to type the
serial number on the correspond column "A". I wonder if I can add a statement
to write automatically the serial number in the column "A". This number will
start from 7047.001 so next one will be 7048.001, 7049.001 and so on.

Thanks in advance.
Maperalia
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      14th Jun 2007
This page is considered to be the best on the subject
http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

Mike

"maperalia" wrote:

> How can I create an automatically sequernce numbers?.
> The program I have create an automatically database from the column "B" to
> column "N". However, everytime I have the data written I have to type the
> serial number on the correspond column "A". I wonder if I can add a statement
> to write automatically the serial number in the column "A". This number will
> start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
>
> Thanks in advance.
> Maperalia

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      14th Jun 2007
Sub AddNumbers()
Dim i as Long, j as long
i = 2
j = 7047
do while cells(i,2) <> ""
cells(i,1) = j + .001
j = j + 1
i = i + 1
Loop
End Sub

--
Regards,
Tom Ogilvy


"maperalia" wrote:

> How can I create an automatically sequernce numbers?.
> The program I have create an automatically database from the column "B" to
> column "N". However, everytime I have the data written I have to type the
> serial number on the correspond column "A". I wonder if I can add a statement
> to write automatically the serial number in the column "A". This number will
> start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
>
> Thanks in advance.
> Maperalia

 
Reply With Quote
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      14th Jun 2007
Tom;
Thnaks for your quick response.
I typed the 7047.001 in the cell "A1" and run the macro and it is doing
nothing. Do I missing something?

Maperalia

"Tom Ogilvy" wrote:

> Sub AddNumbers()
> Dim i as Long, j as long
> i = 2
> j = 7047
> do while cells(i,2) <> ""
> cells(i,1) = j + .001
> j = j + 1
> i = i + 1
> Loop
> End Sub
>
> --
> Regards,
> Tom Ogilvy
>
>
> "maperalia" wrote:
>
> > How can I create an automatically sequernce numbers?.
> > The program I have create an automatically database from the column "B" to
> > column "N". However, everytime I have the data written I have to type the
> > serial number on the correspond column "A". I wonder if I can add a statement
> > to write automatically the serial number in the column "A". This number will
> > start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
> >
> > Thanks in advance.
> > Maperalia

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      14th Jun 2007
Tom explained in an earlier post that i = 2 means A2

If you want A1 to be included change the 2 to 1


Gord Dibben MS Excel MVP

On Thu, 14 Jun 2007 14:15:00 -0700, maperalia
<(E-Mail Removed)> wrote:

>Tom;
>Thnaks for your quick response.
>I typed the 7047.001 in the cell "A1" and run the macro and it is doing
>nothing. Do I missing something?
>
>Maperalia
>
>"Tom Ogilvy" wrote:
>
>> Sub AddNumbers()
>> Dim i as Long, j as long
>> i = 2
>> j = 7047
>> do while cells(i,2) <> ""
>> cells(i,1) = j + .001
>> j = j + 1
>> i = i + 1
>> Loop
>> End Sub
>>
>> --
>> Regards,
>> Tom Ogilvy
>>
>>
>> "maperalia" wrote:
>>
>> > How can I create an automatically sequernce numbers?.
>> > The program I have create an automatically database from the column "B" to
>> > column "N". However, everytime I have the data written I have to type the
>> > serial number on the correspond column "A". I wonder if I can add a statement
>> > to write automatically the serial number in the column "A". This number will
>> > start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
>> >
>> > Thanks in advance.
>> > Maperalia


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      14th Jun 2007
In addition, you don't have to type any number in column A

The line j = 7047 takes care of that.

But you do need data in column B


Gord

On Thu, 14 Jun 2007 14:43:58 -0700, Gord Dibben <gorddibbATshawDOTca> wrote:

>Tom explained in an earlier post that i = 2 means A2
>
>If you want A1 to be included change the 2 to 1
>
>
>Gord Dibben MS Excel MVP
>
>On Thu, 14 Jun 2007 14:15:00 -0700, maperalia
><(E-Mail Removed)> wrote:
>
>>Tom;
>>Thnaks for your quick response.
>>I typed the 7047.001 in the cell "A1" and run the macro and it is doing
>>nothing. Do I missing something?
>>
>>Maperalia
>>
>>"Tom Ogilvy" wrote:
>>
>>> Sub AddNumbers()
>>> Dim i as Long, j as long
>>> i = 2
>>> j = 7047
>>> do while cells(i,2) <> ""
>>> cells(i,1) = j + .001
>>> j = j + 1
>>> i = i + 1
>>> Loop
>>> End Sub
>>>
>>> --
>>> Regards,
>>> Tom Ogilvy
>>>
>>>
>>> "maperalia" wrote:
>>>
>>> > How can I create an automatically sequernce numbers?.
>>> > The program I have create an automatically database from the column "B" to
>>> > column "N". However, everytime I have the data written I have to type the
>>> > serial number on the correspond column "A". I wonder if I can add a statement
>>> > to write automatically the serial number in the column "A". This number will
>>> > start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
>>> >
>>> > Thanks in advance.
>>> > Maperalia


 
Reply With Quote
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      15th Jun 2007
Tom;
Thanks very much. It is working PERFECTLY!!!

"Tom Ogilvy" wrote:

> Sub AddNumbers()
> Dim i as Long, j as long
> i = 2
> j = 7047
> do while cells(i,2) <> ""
> cells(i,1) = j + .001
> j = j + 1
> i = i + 1
> Loop
> End Sub
>
> --
> Regards,
> Tom Ogilvy
>
>
> "maperalia" wrote:
>
> > How can I create an automatically sequernce numbers?.
> > The program I have create an automatically database from the column "B" to
> > column "N". However, everytime I have the data written I have to type the
> > serial number on the correspond column "A". I wonder if I can add a statement
> > to write automatically the serial number in the column "A". This number will
> > start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
> >
> > Thanks in advance.
> > Maperalia

 
Reply With Quote
 
=?Utf-8?B?bWFwZXJhbGlh?=
Guest
Posts: n/a
 
      15th Jun 2007
Gord;
Thanks very much. It is working PERFECTLY!!!

Maperalia



"Gord Dibben" wrote:

> In addition, you don't have to type any number in column A
>
> The line j = 7047 takes care of that.
>
> But you do need data in column B
>
>
> Gord
>
> On Thu, 14 Jun 2007 14:43:58 -0700, Gord Dibben <gorddibbATshawDOTca> wrote:
>
> >Tom explained in an earlier post that i = 2 means A2
> >
> >If you want A1 to be included change the 2 to 1
> >
> >
> >Gord Dibben MS Excel MVP
> >
> >On Thu, 14 Jun 2007 14:15:00 -0700, maperalia
> ><(E-Mail Removed)> wrote:
> >
> >>Tom;
> >>Thnaks for your quick response.
> >>I typed the 7047.001 in the cell "A1" and run the macro and it is doing
> >>nothing. Do I missing something?
> >>
> >>Maperalia
> >>
> >>"Tom Ogilvy" wrote:
> >>
> >>> Sub AddNumbers()
> >>> Dim i as Long, j as long
> >>> i = 2
> >>> j = 7047
> >>> do while cells(i,2) <> ""
> >>> cells(i,1) = j + .001
> >>> j = j + 1
> >>> i = i + 1
> >>> Loop
> >>> End Sub
> >>>
> >>> --
> >>> Regards,
> >>> Tom Ogilvy
> >>>
> >>>
> >>> "maperalia" wrote:
> >>>
> >>> > How can I create an automatically sequernce numbers?.
> >>> > The program I have create an automatically database from the column "B" to
> >>> > column "N". However, everytime I have the data written I have to type the
> >>> > serial number on the correspond column "A". I wonder if I can add a statement
> >>> > to write automatically the serial number in the column "A". This number will
> >>> > start from 7047.001 so next one will be 7048.001, 7049.001 and so on.
> >>> >
> >>> > Thanks in advance.
> >>> > Maperalia

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if the numbers in sequence baha Microsoft Excel Discussion 11 16th Dec 2009 04:58 PM
Invoice Numbers created automatically srctr Microsoft Excel Misc 2 15th Apr 2009 04:26 PM
sequence numbers =?Utf-8?B?TmF0YWxpZSBC?= Microsoft Excel Misc 3 17th Oct 2007 09:50 PM
sequence numbers =?Utf-8?B?c3Ugc3U=?= Microsoft Excel Misc 4 12th May 2005 02:51 AM
sequence numbers =?Utf-8?B?YnJvbnplLWRyYWdvbg==?= Microsoft Word Document Management 1 4th Feb 2005 12:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 AM.