Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have a macro for protecting sheets & the ability to run the macro is password protected. Is there any way i can program it so that when i type in the password people cannot see the letters i am typing? The macro code is as below: ub ProtectAll() Dim sPassword As String sPassword = "LMW5487" If Application.InputBox( _ Prompt:="Please enter the password", _ Title:="Password", _ Type:=2) < sPassword Then MsgBox "Wrong password!" Exit Sub End If Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets ws.Protect Password:="LMW5487", DrawingObjects:=False, Contents:=True, Scenarios:= _ True, AllowFormattingCells:=True, AllowSorting:=True, AllowDeletingRows:=True, AllowInsertingRows:=True, AllowFormattingRows:=True, AllowFiltering:= _ True, AllowFormattingColumns:=True Next ws End Sub -- Lois |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Security & password protection | Excel Discussion (Misc queries) | |||
Password protected document with new level of security for Office | Excel Discussion (Misc queries) | |||
The password option is grayed out under the Security tab | Excel Discussion (Misc queries) | |||
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. | Excel Worksheet Functions | |||
bypass password when update linking of password protected file | Excel Discussion (Misc queries) |