Results 1 to 5 of 5

show message box when a duplicate entry is entered into a userform textbox

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    show message box when a duplicate entry is entered into a userform textbox

    Hello,

    I have a userform that enters data in column A, I would like to get a msgbox response if the same entry has already been entered into column A, if this happens then the sheet resets itself and the user has to start again.



    Private Sub CommandButton12_Click()
    
    
        ActiveWorkbook.Sheets("data").Activate
    
        Range("A1").Select
        Do
        If IsEmpty(ActiveCell) = False Then
            ActiveCell.Offset(1, 0).Select
        End If
        Loop Until IsEmpty(ActiveCell) = True
        ActiveCell.Value = TextBox15.Text
        
        ActiveCell.Offset(0, 1) = TextBox16.Text
        
    
    
    End Sub

    Hopefully its a very simple solution but it has me stumped!

    thanks reg
    Attached Files Attached Files
    Last edited by reggie1000; 05-04-2012 at 05:46 AM.

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