ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°Ý¬¡Å@¤u§@ªí¥i¥H¤@¦¸³]©w§¹¦¨¶Ü?ÁÂÁÂ

[µo°Ý] ½Ð°Ý¬¡Å@¤u§@ªí¥i¥H¤@¦¸³]©w§¹¦¨¶Ü?ÁÂÁÂ

½Ð°Ý~~~
§Ú¦³¤@­Ó¬¡­¶Ã¯¸Ì­±¦³30­Ó¤u§@ªí
¦pªG­n«OÅ@¤u§@ªí¥u¯à­«½Æ³]©w30¦¸?
¦³¿ìªk¥i¥H¤@¦¸´N³]©wÅý30­Ó¤u§@ªí³Q«OÅ@¶Ü?
ÁÂÁÂ

Dim sht As Worksheet
myNum = Application.InputBox("½Ð¿é¤J±K½X")
If myNum = "123" Then
For Each sht In Worksheets
sht.Unprotect Password:="123"
Next
Else
MsgBox "±K½X¿ù»~"
End If

TOP

DEAR  SIR
  ¥ÎVBA¦p¤U  

Sub ¤@¦¸µ¹©Ò¦³¤u§@ªí²K¥[«OÅ@()
    For X = 1 To Sheets.Count
        Sheets(X).Protect Password:=123
    Next X
End Sub
ù

TOP

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD