Put in "PIN" change to Initial
Results 1 to 2 of 2

Thread: Put in "PIN" change to Initial
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    May 2018
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Put in "PIN" change to Initial

    Ok, so I know how to do this using a back page sheet

    =IFS(Sheet2!B1=1234,"GM",Sheet2!B1=2345,"AP",Sheet2!B1=FALSE,"")

    But what I ultimately need and can't figure out is how to do this in the same cell. Rather than typing the "PIN" in Sheet2 B1 to input the initial in Sheet 1 M2, I need to be able to type the "PIN" into Sheet 1 M2 and have it change to the initial when I hit enter and leave the cell.

    Any ideas?

  2. #2
    Board Regular
    Join Date
    Feb 2012
    Posts
    870
    Post Thanks / Like
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Put in "PIN" change to Initial

    You could use a worksheet change event. By placing this code in the Sheet Module.

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
     
    If Target.Address = "$M$2" Then
        If Target.Value = "1234" Then
        Target.Value = "GM"
        ElseIf Target.Value = "2345" Then
        Target.Value = "AP"
        End If
    End If
     
    End Sub
    Last edited by mrshl9898; Aug 15th, 2019 at 06:19 PM.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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