+ Reply to Thread
Results 1 to 14 of 14

How to Mask Password in MsgBox ???

  1. #1
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    How to Mask Password in MsgBox ???

    Hi Everyone,

    Need to mask the password in the Message Box popup... unable to find good examples...


    Please Login or Register  to view this content.
    Any Thoughts???

    Best Regards,

    John
    Last edited by JJFletcher; 05-06-2016 at 09:42 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: How to Mask Password in MsgBox ???

    Look at this link

    http://www.ozgrid.com/forum/showthread.php?t=15848
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to Mask Password in MsgBox ???

    Use a userform.

    Use a Textbox to enter the password

    Use the keypress event to store the character and replace it with an asterix.

    Your Macro becomes:-

    Please Login or Register  to view this content.




    The Userform Code is:-

    Please Login or Register  to view this content.

    This userform code is probably better, it is case sensitive wheras the previous one assumed capitals.:-

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 05-06-2016 at 04:00 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: How to Mask Password in MsgBox ???

    The input box in the above code is generated by the macro - I think the solution you suggest works with Forms...

    John

  5. #5
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: How to Mask Password in MsgBox ???

    I would like to achieve this without using a form... I would like to use the macro above

    John
    Last edited by JJFletcher; 05-06-2016 at 03:44 PM. Reason: spelling

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: How to Mask Password in MsgBox ???


  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to Mask Password in MsgBox ???

    Since you chose to ignore my contributions, I no longer feel inclined to offer you any solutions.

    This is one, For Example: http://www.excelforum.com/excel-prog...getions-2.html

    What goes around, comes around my friend.

    Please consider a more responsive attitude, and you could avoid an "Ignore List".

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  8. #8
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: How to Mask Password in MsgBox ???

    WINON,

    You are JOKING right - you are referring to a post in 2007... Wow - Sorry WINON that I did not reply - I was new to the Forum then... Interesting you keep such a grudge for so long... what prompted this by the way...


    John
    Last edited by JJFletcher; 05-06-2016 at 04:41 PM.

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to Mask Password in MsgBox ???

    Hi John,

    I bear no grudge, and the Post I a referring to was in April 2016, and not 2007.

    The Thread Topic is: Macro to change caption in Toggle button (Open/Close) code - Any Suggetions?

    One of the responses was: BSB,

    Thanks so much for your suggestions... The Toggle Buttons you both offered do work, however the size is just to big to fit into the sheet design...

    Name: sample2.JPG Views: 4 Size: 11.2 KB

    The Code I mentioned above works with the current button but the caption does not change...

    John

    I offered you a solution with a sample Workbook, with a request a couple of days later, asking you if it helped?

    Does that ring a bell?

    Regards.

  10. #10
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: How to Mask Password in MsgBox ???

    Hi Winon,

    My apologies to say the least!!!!!

    It is not my intention to insult anyone, especially the Experts, Moderators and Forum Contributors which are extremely invaluable assets for all interested Excel Expert Coders and novices world wide. I encourage all who have a desire to learn and understand Excel to visit "THIS" Forum. I have been treated well here and I am sorry If I offended you in any way... The Post in which is referenced was overlooked and I am sorry for this... Hope this can be put aside

    Best Regards,

    John

  11. #11
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to Mask Password in MsgBox ???

    No problem John,

    There is nothing to put aside as things are sometimes overlooked. Thank you for not feeling offended by me for ruffling the feathers.

    All is well!

    Kind Regards.

  12. #12
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: How to Mask Password in MsgBox ???

    Thanks Everyone...


    It seems as though the Userform is the only real solution because a text box can only be Masked in a Userform.....

    I have adopted this suggestion and it works fine!

    Thanks much again,

    Best Regards,

    John

  13. #13
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: How to Mask Password in MsgBox ???

    Although you have resolved your issue I would like to present this for future reference.
    I came accross this a long time ago and it is in fact possible to mask InputBox input.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: How to Mask Password in MsgBox ???

    Thank you so much for your suggestion,

    Unfortunately it did not work - it said that it needed to be updated to a 64 bit system and PFSafe settings needed to be added.

    Best Regards,

    John

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to capture MsgBox prompt to a string variable but ignore the MsgBox
    By BuglerDobbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2015, 10:56 AM
  2. Automate Series Number With Adding Mark (.) or mark "-"
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2014, 12:38 PM
  3. Replies: 2
    Last Post: 10-28-2013, 03:52 PM
  4. [SOLVED] Problem with VBA Editor uses lower case on some lines (ex. msgbox instead of MsgBox)
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 06:59 PM
  5. Mark data from one sheet to another,and then mark dublicate
    By minotauro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2012, 07:58 AM
  6. Quatation mark or single mark in sql query
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2010, 06:03 PM
  7. MsgBox-center the message on a msgbox
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2007, 06:48 AM

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