Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Auto generating number

Can anyone help a novice to add a field in an Excel workbook that auto
generates a number (starting with the first one I tell it to) and then auto
generate the next consecutive # after maybe clicking on an update button that
also would clear the form?

Maybe Excell is not the way to go. Maybe Access or something?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Auto generating number

hi,
are you using a form or template?
one way is to put your number is a remote cell. say IV69536. few people i
know accually use that cell.
add a "new" button.
If template and assuming invoice number is in A1'.....
Range("A1").value = range("IV65536").value
this will load your next number.
If form.....
tbInvoiceNumer.value = Range("IV65536").value
then at the end of your update code add this....
Range("IV65536").value = Range("IV65536").value + 1
this will set your next number for the next "new".

there are a number of way to do this. Assuming that you are updating a
database, you could us vlookup to find the max invoice number and add one to
it and stick it in A1.

there other ways but maybe this will get you going or give you ideas.
"Best way" is often a mater of opinion and/or situation.

Regards
FSt1

"RichN" wrote:

Can anyone help a novice to add a field in an Excel workbook that auto
generates a number (starting with the first one I tell it to) and then auto
generate the next consecutive # after maybe clicking on an update button that
also would clear the form?

Maybe Excell is not the way to go. Maybe Access or something?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i set up automatic number generating huwzee Excel Worksheet Functions 5 January 25th 07 03:02 PM
Generating an auto number JohannM Excel Worksheet Functions 1 September 4th 06 06:20 PM
Auto-generating a list of records that meet a pattern criteria Jeff Gerke Excel Discussion (Misc queries) 0 March 23rd 06 11:18 PM
Auto generating a printed date Tbone New Users to Excel 2 February 17th 06 10:14 PM
Generating (in a random order)each number once from a given number Neil Goldwasser Excel Worksheet Functions 2 December 2nd 05 11:27 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"