+ Reply to Thread
Results 1 to 2 of 2

Assign Enrollment Numbers to Different Class..

Hybrid View

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    89

    Assign Enrollment Numbers to Different Class..

    Hello EveryOne!


    In my UserForm I have got a ComboBox which have different Classes name( for example Class 1 , Class 2 , Class 3 .........Class 10 )

    In the UserForm I have a Text Box to manually assign "Roll Number" to Students.


    I used the following code which just look not repeating Roll Number... but it does not look that which class is Selected from comboBox.

    Please see attachment that what I really want .....and how roll numbers should be assigned through userform

    If WorksheetFunction.CountIf(Sheet1.Range("B2:500"), TextBoxRollNo.Text) <> 0 Then
     MsgBox "This Roll Number has been already used", vbCritical
     Exit Sub
     End If


    I will be really thankful If anyone could help me please..
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Assign Enrollment Numbers to Different Class..

    Where is your userform?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1