LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Generate a unique form number

I am using Office 2003 on Windows XP.

I have a form built in Excel that will be placed in an Outlook folder making
it accessible to all users within our organization.

Each time a user opens this form a unique number must be generated on the
form.

Suppose I convert the Excel date to a value: e.g. Aug 17, 2005 becomes 38363
and for time I use 5:34:15 pm = 173415. Now suppose I add these two numbers
together and also add the user's computer ID to this (each user must have a
unique computer ID) for example: 83177.

This would then be 38363 + 173415 + 83177 = 294955

Question: Since this value is date and time based and combines a unique
computer ID, would this ALWAYS generate a unique six digit form number?

The form number does need to be unique, but not necessarily in sequence Any
one have any other suggestions?
 
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 generate a unique reference number??? Rachel Excel Discussion (Misc queries) 3 November 21st 08 03:56 AM
How do I get a unique number on a form when I open it each time? Patti Excel Worksheet Functions 2 June 8th 07 09:38 PM
How can I generate a unique number each time a form is printed? homaxlinda Excel Worksheet Functions 1 August 17th 06 09:52 PM
how to generate a unique form # when using an excel form template PJE Excel Worksheet Functions 1 May 24th 06 11:00 PM
Generate number NOT using a form DavisC New Users to Excel 2 March 4th 05 01:21 AM


All times are GMT +1. The time now is 07:45 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"