Pints
New Member
- Joined
- May 29, 2020
- Messages
- 3
- Office Version
- 365
- 2019
- 2016
- 2013
- Platform
- Windows
Hi
Long time reader, first time poster.
In a journal template, a user can enter any number c. 350 predefined 4 digit codes. Each code has to be used at least twice (such is the nature of balancing journals). For each code that the user selects, I need the template to produce a new, sequential, batch ID.
For example, code 1234 might be used 5 times and each of those should use the ID 01. For code 4321, the ID used would need to use ID 02. For another code, ID 03 would be used.
There's no specific requirement that the codes are grouped together by the user (e.g. the list could be 1234, 1234, 4321, 1234)
How can I use either a formula or VBA to produce a sequential ID for each "batch" of codes? e.g. 1234 = 01, 4321 = 02, etc.
P.S. The ID produced will ultimately be used when populating an output file with VBA for loading to the accounting package.
P.P.S. If it makes any difference, not all users will be using Office 365 when populating the template.
Thanks,
Pints
Long time reader, first time poster.
In a journal template, a user can enter any number c. 350 predefined 4 digit codes. Each code has to be used at least twice (such is the nature of balancing journals). For each code that the user selects, I need the template to produce a new, sequential, batch ID.
For example, code 1234 might be used 5 times and each of those should use the ID 01. For code 4321, the ID used would need to use ID 02. For another code, ID 03 would be used.
There's no specific requirement that the codes are grouped together by the user (e.g. the list could be 1234, 1234, 4321, 1234)
How can I use either a formula or VBA to produce a sequential ID for each "batch" of codes? e.g. 1234 = 01, 4321 = 02, etc.
P.S. The ID produced will ultimately be used when populating an output file with VBA for loading to the accounting package.
P.P.S. If it makes any difference, not all users will be using Office 365 when populating the template.
Thanks,
Pints