LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default changing password to ****


Hi,
I have entered this code. But I want the password to appear in the for
of **** when opening the sheet. Is that possible? If yes, pleas
help......your help is appreciated. :smile:


Private Sub enterpassd()
Dim pw As String
Application.ScreenUpdating = False
pw = InputBox("Please enter Password.")
If pw = "yourpassword" Then
With Worksheets("Corporate 99")
ActiveSheet.Unprotect password:=pw
.Visible = True
.Activate
End With
Else: MsgBox "The password is incorrect. Please try again."
End If
Application.ScreenUpdating = True
End Sub

Thanks in advance......

also please let me know how to put the above code in the code format i
this forum...i tried enough.....:

--
praveen_kh
-----------------------------------------------------------------------
praveen_khm's Profile: http://www.excelforum.com/member.php...fo&userid=3036
View this thread: http://www.excelforum.com/showthread.php?threadid=53464

 
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
changing password Charlie Brown Excel Discussion (Misc queries) 3 June 7th 07 12:11 PM
changing password in Excel workbook Val Excel Worksheet Functions 6 November 12th 06 08:22 AM
changing a password protected file mellow Excel Discussion (Misc queries) 2 June 3rd 06 05:10 AM
Changing password protection on sheets Tom Hewitt Excel Discussion (Misc queries) 5 February 25th 05 03:33 PM
Changing a made up password Nornny Excel Programming 1 June 4th 04 05:01 PM


All times are GMT +1. The time now is 02:49 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"