Automatically generate alphanumeric user id when userform open in excel

avijitsarkar

New Member
Joined
Mar 1, 2018
Messages
8
hii friends, I'm new in excel vba,i just want to make a student database in excel userform, and there is a column student id, which is the alphanumeric serial like "ICE/ANG/1001".every time when i open the userform to enter a new student database the id text box goes to auto fillup or generate with last alphanumeric id like " ICE/ANG/1002" and "ICE/ANG/1003" and "ICE/ANG/1004" to be continue.
please help me .
sorry for bad english.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I want to help you but I have asked several times.
Where will we find:

ICE/ANG/1002


You want first time
ICE/ANG/1002

Next time

ICE/ANG/1003

Next time
ICE/ANG/1004


But we need to know where is this value being entered on the sheet so we know how to do this.

Where will we find these numbers on your sheet?

<strike>
</strike>
 
Upvote 0
Cross posed https://www.excelforum.com/excel-pr...te-increment-alphanumeric-id-in-userform.html

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
the first record of student manually to be enter in the worksheet. and the next time it will be automatically show in the userform textbox
and here the first column "A" is the "ID" column.
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]ID[/TD]
[TD]NAme[/TD]
[TD]Guardian[/TD]
[TD]GUARDIAN
Occupation[/TD]
[TD]contact[/TD]
[TD]village[/TD]
[/TR]
[TR]
[TD]ICE/ANG/1002[/TD]
[TD]Avijit[/TD]
[TD]Amal[/TD]
[TD]Buisness[/TD]
[TD]9999999999[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top