Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Command Button Password

Anyone know how I can add a password to a command button I
put on an Excel 2000 worksheet? My thought was to user
the "inputbox" method but the password typed by the user
is displayed. I then thought I could use
the .passwordchar but it doesn't work.

Thank you

Cindy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Command Button Password

You can make a userform to show when the command button is clicked. Create
a userform, add a textbox, right click the textbox and put whatever
characters you want in the passwordchar box. Then add two more command
buttons, one to do what ever you want if the correct password is entered,
the other just a cancel button to close the userform if the user doesn't
want to enter the password, although this isn't necessary because the user
can close the form by clicking the 'x' at the top of the form.

HTH
"Cindy" wrote in message
...
Anyone know how I can add a password to a command button I
put on an Excel 2000 worksheet? My thought was to user
the "inputbox" method but the password typed by the user
is displayed. I then thought I could use
the .passwordchar but it doesn't work.

Thank you

Cindy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command Button Password

Thank you. I was working on that idea before your reply but how do you
open the user form from a command button on the worksheet?



Cindy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Command Button Password

Cindy,

If the command button is from the Forms toolbar, assign the
following macro to the button.

Sub ShowTheForm()
UserForm1.Show
End Sub

If the command button is from the Controls toolbar, put the
following code in the button's Click event procedu

UserForm1.Show


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Cindy Kester" wrote in message
...
Thank you. I was working on that idea before your reply but

how do you
open the user form from a command button on the worksheet?



Cindy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
password protect unhide sheet command jimmill Excel Discussion (Misc queries) 1 February 24th 09 10:08 PM
command button add another command Wanna Learn Excel Discussion (Misc queries) 5 December 7th 08 11:42 PM
Command Button vs Control Button RGibson Excel Programming 1 October 14th 03 02:24 AM
Password feature in command buttons Marvin Moore Excel Programming 1 September 10th 03 09:25 AM
Command Button vs Form Button T K Excel Programming 4 August 26th 03 07:26 PM


All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"