+ Reply to Thread
Results 1 to 4 of 4

Password * from macro

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Password * from macro

    I have a macro which had
    Please Login or Register  to view this content.
    I want to be able to see only **** when entering the password. Looking around this forum, I've figured out that I need to use a user form instead of input box. (Yes?)

    I have very little experience with Userforms. I created a user form (userform1) with a single text box (textbox1) with the properties of the text box saying passwordchar =* and a command button that I intend to use to close the userform.

    How to I call that Userform from within the macro and set the textbox value equal to PWORD?
    Please Login or Register  to view this content.
    or do I set PWORD = TextBox1.Value from the command button on the userform?
    Please Login or Register  to view this content.
    I Dimensioned PWORD within the macro, do I need to dimension it elsewhere?

    Thanks in advance!
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Registered User
    Join Date
    02-03-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Password * from macro

    in macro to open userform for password

    Please Login or Register  to view this content.
    i believe password needs to be set as string. rest of code depends on your need

    Please Login or Register  to view this content.
    command to close

    Please Login or Register  to view this content.
    i am new. hope this helps.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Password * from macro

    These links may be of interest

    http://www.xcelfiles.com/API_09.html
    http://www.bygsoftware.com/examples/...s/password.zip

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Password * from macro

    Set the TextBox's passwordChar to *.

    In the VB Editor click on the TextBox then scroll down the TextBox properties to find the property.

    Here's a couple of examples

    http://www.sendspace.com/file/pryask
    http://www.sendspace.com/file/s3rrnj
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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