+ Reply to Thread
Results 1 to 5 of 5

change the characters entered in cell as a Password charactes

  1. #1
    Registered User
    Join Date
    12-01-2005
    Posts
    6

    change the characters entered in cell as a Password charactes

    Hi,

    Is there any possiblity to change the text entered in a cell to be displayed as a Password field. means all characters entered would be replaced by"*".
    Thanks
    Raj

  2. #2
    Tom Ogilvy
    Guest

    Re: change the characters entered in cell as a Password charactes

    format=>Cells=>Number Tab, choose custom

    "*";"*";"*";"*"

    --
    Regards,
    Tom Ogilvy


    "rajendran" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    >
    > Is there any possiblity to change the text entered in a cell to be
    > displayed as a Password field. means all characters entered would be
    > replaced by"*".
    > Thanks
    > Raj
    >
    >
    > --
    > rajendran
    > ------------------------------------------------------------------------
    > rajendran's Profile:

    http://www.excelforum.com/member.php...o&userid=29252
    > View this thread: http://www.excelforum.com/showthread...hreadid=491419
    >




  3. #3
    Tom Ogilvy
    Guest

    Re: change the characters entered in cell as a Password charactes

    Just be aware that if the cell is selected, the entry is visible in the
    formula bar.

    --
    Regards,
    Tom Ogilvy

    "rajendran" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    >
    > Is there any possiblity to change the text entered in a cell to be
    > displayed as a Password field. means all characters entered would be
    > replaced by"*".
    > Thanks
    > Raj
    >
    >
    > --
    > rajendran
    > ------------------------------------------------------------------------
    > rajendran's Profile:

    http://www.excelforum.com/member.php...o&userid=29252
    > View this thread: http://www.excelforum.com/showthread...hreadid=491419
    >




  4. #4
    Registered User
    Join Date
    12-01-2005
    Posts
    6
    Tom,

    Its displaying only one "*" for the whole word. cant we change each character to "*" and get it vb script code.

    Actually i am having a username and password (for my server )to be typed in a cell. cant we make the same appearence as standard password field.

    Regards
    Raj

  5. #5
    Tom Ogilvy
    Guest

    Re: change the characters entered in cell as a Password charactes

    You could use the change event

    Right click on the sheet tab and select view code. then put in code like
    this:

    Private Sub Worksheet_Change(ByVal Target As Range)
    On Error GoTo ErrHandler
    If Target.Address = "$B$9" Then
    Application.EnableEvents = False
    sStr = Chr(34) & Application.Rept( _
    "*", Len(Target.Value)) & Chr(34)
    Target.NumberFormat = sStr & ";" & sStr & ";" & _
    sStr & ";" & sStr
    End If
    ErrHandler:
    Application.EnableEvents = True
    End Sub

    --
    Regards,
    Tom Ogilvy


    "rajendran" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Tom,
    >
    > Its displaying only one "*" for the whole word. cant we change each
    > character to "*" and get it vb script code.
    >
    > Actually i am having a username and password (for my server )to be
    > typed in a cell. cant we make the same appearence as standard password
    > field.
    >
    > Regards
    > Raj
    >
    >
    > --
    > rajendran
    > ------------------------------------------------------------------------
    > rajendran's Profile:

    http://www.excelforum.com/member.php...o&userid=29252
    > View this thread: http://www.excelforum.com/showthread...hreadid=491419
    >




+ 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