JMongi
Active member
- Local time
- Today, 10:39
- Joined
- Jan 6, 2021
- Messages
- 802
I'm working on a little app to assign and track our drawing numbers. As such, our current drawings are going to have some gaps in the drawing number scheme.
I can use a Dmax to find the greatest number and increment that. But, that won't do much for filing in gaps of missing numbers. I'm doing reading on various numeric functions in VBA but thought I would throw this out to you VBA experts!
As a simplified clarifying example, I might have the root drawing numbers of:
00001
00002
00003
00010
00015
Using DMax plus increment would start me at 00016 and the app would never fill in 00004, etc.
I can use a Dmax to find the greatest number and increment that. But, that won't do much for filing in gaps of missing numbers. I'm doing reading on various numeric functions in VBA but thought I would throw this out to you VBA experts!

As a simplified clarifying example, I might have the root drawing numbers of:
00001
00002
00003
00010
00015
Using DMax plus increment would start me at 00016 and the app would never fill in 00004, etc.