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

¤@­Ó«OÅ@°ÝÃD,

¦^´_ 22# GBKEE

ÁÂÁ¤j¤j, ¤p§Ì¨ü±Ð¤F, ·s¦~§Ö¨ì, ¯¬Ä@·s¦~¶i¨B, °·±d..

TOP

¦^´_ 23# solely
¤£¿ù §AªºÆ[©À«Ü¥¿½T,«OÅ@¤u§@ªí¥u¯à¨¾§g¤l,¤£¯à¨¾¤p¤H. ¥u¦³¬¡­¶Ã¯³]±K½X,¤~¯à«O±K.

TOP

¦^´_ 15# GBKEE
¹ï©ó«OÅ@«O±K¡A§Ú¤@ª½«Ü§x´b.....
­Y¥u¬O·QÁקK¤u§@ªíªº¸ê®Æ³QµL¤ßªÌ©Ò­×§ï¡A¥u­n«OÅ@¤u§@ªí´N°÷¤F¡C
­Y¬O¤£·QÅý§O¤HÀH·N¶}±Ò¬¡­¶Ã¯¡A¥u­n«OÅ@¬¡­¶Ã¯§Y¥i¡C

­Y¬O·Q«O±K¡A´Nºâ¤u§@ªí³]©w«OÅ@¤Î¼h¼hÃö¥d(¦p¹Ï¤T)¡A¥u­n¯à¶}±Ò¬¡­¶Ã¯¡A
´N¦p¹Ï¤@¡B¤G©Ò¥Ü¡A´Nºâ°±¥Î¥¨¶°¡A¤@¼Ë¯à¿sµø¸ê®Æ¤º®e¡C
¦ü¥G¯à¤£¯à¬Ý¨ì¤u§@ªíªº¤º®e¡AÃöÁä¦b©ó¯à¤£¯à¶}f±Ò¬¡­¶Ã¯¡C
¤£ª¾¹D§Úªº·Qªk¦³¨S¦³¿ù?!

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-12-25 20:42 ½s¿è

¦^´_ 21# ©P¤j°¶
Application.CommandBars.FindControl(ID:=30029).Enabled = False
Control «ü¥O -> «OÅ@(ID:=30029) ªº¨Ï¥Î(°±¤î= False)
¨C¤@Control ¦³¤@¦Û¤vªº ID¸¹¼Æ

TOP

¤j¤j, ¥ý¦æÁ¹L,
¬Û«H³o½gµ{¦¡µ¹¤©¾Ç²ß¥Í¤@­Ó¾Ç²ß¾÷·|, ¤j¤j, ¤U¦C³o¦æ¥i§_§iª¾, ¦Ó30029ªº§t·N¬O..
Application.CommandBars.FindControl(ID:=30029).Enabled = False
³Ì«á¯¬Ä@§Ö¼Ö, ·P®¦..

TOP

¦^´_ 19# ©P¤j°¶
1.±Nµ{¦¡½X¶K©ó ThisWorkbook,  ±M®×ªºÄÝ©Ê->«OÅ@  ¤Ä¿ïÂê©w±M®×, ¿é¤J±K½X
2.¬¡­¶Ã¯¥t¦sÀɮ׫ü¥O -> ¤u¨ã-> ¤@¯ë¿ï¶µ  ¿é¤J¬¡­¶Ã¯«OÅ@±K½X
  1. Option Explicit
  2. Private Const ±K½X = "1234"
  3. Private Const ¦rÅéÃC¦â = 1
  4. Private Const «OÅ@¦â = 2    '¥i¦Û¦æ­×§ï
  5. Dim Answer$
  6. Private Sub Workbook_Open()
  7.     Sheets_Protect
  8.     Answer_Pass
  9. End Sub
  10. Private Sub Workbook_BeforeClose(Cancel As Boolean)
  11.     Sheets_Protect
  12.     Save
  13. End Sub
  14. Private Sub Workbook_SheetActivate(ByVal Sh As Object)
  15.     Answer_Pass
  16. End Sub
  17. Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
  18.      My_UnProtect (IIf(Answer = ±K½X, True, False))
  19. End Sub
  20. Private Sub Sheets_Protect()
  21.     Dim Sh As Worksheet
  22.     For Each Sh In Sheets
  23.         With Sh
  24.         .Unprotect ±K½X
  25.         .Cells.Font.ColorIndex = «OÅ@¦â
  26.         .Cells.Interior.ColorIndex = .Cells.Font.ColorIndex
  27.         .EnableSelection = xlNoSelection
  28.         .Protect PassWord:=±K½X, DrawingObjects:=True
  29.         End With
  30.     Next
  31. End Sub
  32. Private Sub My_UnProtect(Y As Boolean)
  33.     Application.ScreenUpdating = False
  34.     With ActiveSheet
  35.         .Unprotect ±K½X
  36.         If Y = True Then
  37.             .Cells.Font.ColorIndex = ¦rÅéÃC¦â
  38.             .Cells.Interior.ColorIndex = xlNone
  39.             Application.CommandBars.FindControl(ID:=30029).Enabled = True
  40.         Else
  41.             .Cells.Font.ColorIndex = «OÅ@¦â
  42.             .Cells.Interior.ColorIndex = .Cells.Font.ColorIndex
  43.             .EnableSelection = xlNoSelection
  44.             .Protect PassWord:=±K½X, DrawingObjects:=True
  45.             Application.CommandBars.FindControl(ID:=30029).Enabled = False
  46.         End If
  47.     End With
  48.     Application.ScreenUpdating = True
  49. End Sub
  50. Private Sub Answer_Pass()
  51.     If Answer <> ±K½X Then
  52.         If InputBox("±K½X??", "¿é¤J±K½X") = ±K½X Then Answer = ±K½X
  53.     End If
  54.     My_UnProtect (IIf(Answer = ±K½X, True, False))
  55. End Sub
½Æ»s¥N½X

TOP

¤j¤j,
¥ý¦æÁ¹L, ¤j¤jµ¹¤©±Ð¾É, ¬O¤@¯ë¿ï¶µ¤¤³]¥ß±K½X, ¦Ó¤p§Ì©Ò·Q¦V¤j¤j¾Ç²ßªº«K¬O§âÀx¦s®æ¦rÅé³]©w»PÀx¦s®æ¬Û¦P¦â, ¦A¥[¤W±K½X³]©w¬°1234µ{¦¡½d¨Ò, ´¿»P¤Í¦n°Q½×, ¦ý¨S¦³±o¨ìµ²ªG, ¬G½Ð¤j¤j«ü¾É, §Æ±æ¤j¤jµ¹¤©¤@½d¨Ò. ¦nÅý±q¤¤¾Ç²ß, ¥ýÁ¹L¤j¤j, ¸t½Ï§Ö¼Ö..

TOP

¦^´_ 17# ©P¤j°¶
¦p¤U¹Ï ¿ï¨ú«á ¿é¤J±K½X§Y¥i

TOP

GBKEE¤j¤j,
¤W­z©Ò´£¤Îªº«OÅ@¤è¦¡, ¤j¤j¥i§_°µ¤@½d¨ÒÀÉ, µ¹¤©§Úµ¥µ{«×§C¦Ó´N·Q±q¤¤¾Ç²ßªºªù¥Í°Ñ¦Ò,
·P®¦..

TOP

ÁÂÁ¤j¤j.
¤p©f·PÁ«ü¾É, ¯¬Ä@§Ö¼Ö.

TOP

        ÀR«ä¦Û¦b : ¨ü¤HÂI¤ô¤§®¦¡A¶··í´é¬u¥H³ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD