+ Reply to Thread
Results 1 to 3 of 3

Select cell from a named range

Hybrid View

  1. #1
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Select cell from a named range

    Try:

    Private Sub OKButt_Click()
    
    Dim rngUser As Range
    
    If RepeatPasswordTextBox <> PasswordTextBox Then
    MsgBox "Passwords do not match please try again.", vbCritical + vbInformation, "Spagbog"
    PasswordTextBox = ("")
    RepeatPasswordTextBox = ("")
    PasswordTextBox.SetFocus
    End If
    
    Set rngUser = Range("UserNames").Find(UserNameTextBox.Value, Lookin:=xlValues, LookAt:=xlWhole, Matchcase:=FALSE)
    
    
    If RepeatPasswordTextBox = PasswordTextBox And Not rngUser Is Nothing Then
    rngUser.Offset(0, 1) = RepeatPasswordTextBox.Value
    Unload Me
    End If
    End Sub

  2. #2
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Select cell from a named range (Solved)

    Andrew-R
    Perfect...and such a quick reply..
    Many Thanks

+ 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