Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto numbering macro

I've printed out the directions for the auto-numbering macro.
Question for Geoff and the group is, Can the macro be set up to run a
specific prefix? If I want to use these in several departments, I'd like the
first 5 digits to be their cost centre + the automatic numbering

ie Cost Centre 12345 would open a requisition in the morning of 123450001,
then 123450002 continuing through 123459999 and then probably start over.
Another area (cost centre 56789) would have 567890001 etc etc.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default auto numbering macro

Look at it and fine someplace in the code that this might be applicable.

If somerange = 0 then
somerange = 123450001
else
somerange = somerange + 1
end if

--
Regards,
Tom Ogilvy


"JonM4" wrote in message
...
I've printed out the directions for the auto-numbering macro.
Question for Geoff and the group is, Can the macro be set up to run a
specific prefix? If I want to use these in several departments, I'd like

the
first 5 digits to be their cost centre + the automatic numbering

ie Cost Centre 12345 would open a requisition in the morning of 123450001,
then 123450002 continuing through 123459999 and then probably start over.
Another area (cost centre 56789) would have 567890001 etc etc.

Thanks!



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
Auto numbering Manos Excel Worksheet Functions 4 October 31st 08 08:01 AM
Auto-numbering Len Excel Worksheet Functions 10 June 20th 08 05:27 PM
auto numbering macro JonM4 Excel Discussion (Misc queries) 0 April 25th 06 03:20 PM
auto numbering macro JonM4 Excel Worksheet Functions 0 April 25th 06 03:19 PM
Auto-Numbering starguy Excel Worksheet Functions 10 March 27th 06 07:38 AM


All times are GMT +1. The time now is 07:21 AM.

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

About Us

"It's about Microsoft Excel"