Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / May 2008

Tip: Looking for answers? Try searching our database.

Macro Button Password

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve C - 20 May 2008 15:18 GMT
Hi,

Can someone please help with this query,

I'm trying to password protect a macro.
When I use the following it will ask the user for a password and *******
will be displayed in the input box, however when the user types in their
password it is visible to all.
How do I change this so that the users password is displayed as ****** when
entered

Dim MyPassword
MyPassword = InputBox("Please enter a valid password", "Password Prompt",
"********")

Many thanks
Ron de Bruin - 20 May 2008 15:25 GMT
Hi Steve

Not possible with a inputbox

Create a small userform with a textbox
See the PasswordChar Property in the properties window

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

> Hi,
>
[quoted text clipped - 12 lines]
>
> Many thanks
Steve C - 20 May 2008 15:44 GMT
Thank you,
I have been losing sleep over this!

> Hi Steve
>
[quoted text clipped - 19 lines]
> >
> > Many thanks
Ron de Bruin - 20 May 2008 16:25 GMT
Hi Steve

See this page for Userfom stuff
http://support.microsoft.com/default.aspx?scid=kb;EN-US;829070

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

> Thank you,
> I have been losing sleep over this!
[quoted text clipped - 22 lines]
>> >
>> > Many thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.