+ Reply to Thread
Results 1 to 3 of 3

Use a userform to Insert a PIN number in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    02-16-2011
    Location
    San José, Costa Rica
    MS-Off Ver
    Excel 2007
    Posts
    8

    Use a userform to Insert a PIN number in a cell

    I'm trying to use a VB so when an user activate any cell in column H an userform will show and ask for a password. As you can see from the attachment, right now my code only can insert such password in a ''fixed'' sheet range in column G.

    What I would like to do is for the code to ''understand'' that if I activate a cell (and hence the userform) in column H let say (2,8) the input value in the textbox should be introduced into a cell in G lets say (2,7) and so on for any activated cell. i.e. I need for every cell that ask for a Pin to act independently but to use the same userform
    Attached Files Attached Files
    Last edited by nanogr; 02-22-2011 at 01:34 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,802

    Re: Use a userform to Insert a PIN number in a cell

    Let's try this

    Sub Aceptar_Click()
       Sheet1.Cells(ActiveCell.Row, 7) = TextBox1.Value ' modified
       Unload UserForm1
    End Sub
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-16-2011
    Location
    San José, Costa Rica
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Use a userform to Insert a PIN number in a cell

    Great, Thanks a lot man.... life saver!!

+ 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