Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,522
Default Command button wz 2 function

On Saturday, October 27, 2012 5:26:48 AM UTC-5, Bakar wrote:
Hi Excel experts,

I want to have my Cmd button to use as follow

1st click protect the sheet with a password"123" already written in the

macros

then 2nd click same button i got the input box to insert the password to

unlock the sheet

that is Lock and Unlock sheet with same Button

also If I can have on the button "LOCK" when the sheet is unlock and

"UNLOCK" whenthe sheet is locked so thet when a user see the button

he/she know that the sheet is whether await Lock or Unlock



Thanks very much for your help









--

Bakar


Here is the basic idea. Modify to suit
Sub chgtextontoggleit()
ActiveSheet.Shapes("toggleit").Select
With Selection
If .Characters.Text = "Show" Then
msg = "NO show"
Else
msg = "Show"
End If
..Characters.Text = msg
End With
Range("a1").Select
End Sub



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
Insert a function through a command button Subodh Excel Programming 5 May 14th 10 03:37 AM
Assign Function to a Command Button MUEEN SEHDI Excel Discussion (Misc queries) 1 October 29th 09 11:25 AM
command button function SDH Excel Programming 1 April 18th 07 04:42 AM
Command Button Function bob Excel Programming 1 February 6th 07 06:12 PM
command button to do F9 function Jay Excel Programming 3 October 3rd 06 11:46 PM


All times are GMT +1. The time now is 09:33 AM.

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"