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

[µo°Ý] ½Ð°Ý¤@¤U "VBAÅçÃÒ±K½Xªº°ÝÃD" ?

[µo°Ý] ½Ð°Ý¤@¤U "VBAÅçÃÒ±K½Xªº°ÝÃD" ?

¦U¦ì¤j­ô°ª¤â
½Ð°Ý¤@¤U
¤p§Ì°µªºexcelÀÉ®×
¦]¬°¦³«Ü¦hsheets
¨C­Ósheets³£¦³¦U¦Ûªº¥\¯à
©Ò¥H¥Îvba¨Ó±±¨î
1¸¹±Ò°Ê´NÁôÂÃ234¸¹....¨ä¥LÃþ±À
activeworkbook¸òactivesheet³£¦bactivate®É´Nunprotect
µ{¦¡½X°õ¦æ§¹²¦¦Aprotect¨Ã¥[¤W±K½X
¨ì³o¸Ì³£¨S°ÝÃD
ª½¨ì§Ú¥[¤W±K½XÅçÃÒ¤~¥X²{¿ù»~
§Ú°µªº±K½XÅçÃÒ¤§«e
¦pªG¿é¤J¥¿½Tªº±K½X¦A§ï¨ä¥L±K½X¨Ã¦sÀÉ
¤U¦¸¶}±Ò·|¥X²{±K½X¤£¥¿½Tªº¹ï¸Ü®Ø
¦ý¬O±K½X¤w¸g³QÅܧó¤F
§Ú·Q°µªº¬O¦pªG±K½X¦bworkbook open¶¥¬qÅçÃÒ¿ù»~
´NÃö²¦workbook¸òsheet
¦³¤j­ô¥i¥H«ü¾É¤@¤U¶Ü
ÁÙ¬O§Ú»Ý­n¤W¶ÇÀÉ®×?
«D±`·PÁÂ

­ì¨Ó¬O±K½X¤w¸g¥[±K
©Ò¥H¥Ã»·¤£·|¥¿½T XD
ÁÂÁ±zªº«ü¾É
«D±`·PÁ±z

TOP

¦^´_ 6# taliban2008
ActiveWorkbook.Protect Password:="0000"   '¶}±Ò¬¡­¶Ã¯«á:³]©w«OÅ@¬¡­¶Ã¯¨Ï¨ä¤£³Q­×§ï®É©Ò»Ýªº±K½X
ActiveWorkbook.Password = "AAAA"             ' ³]©w¶}±Ò«ü©w¬¡­¶Ã¯®É©Ò»Ýªº±K½X
If ActiveWorkbook.Password <> "0000" Then   '¬O¥Ã»·¦¨¥ßªº
¸Õ¸Õ MsgBox ActiveWorkbook.Password §A´Nª¾¹Dªº

TOP

ª©¥D¤j¤H±z¦n
§Ú¤W¶ÇÀɮפF
³Â·Ð½Ð±zÀ°¦£¬d¤@¤U
«D±`·PÁ±z
±K½XÅçÃÒ´ú¸ÕÀÉ.rar (798.74 KB)
§Ú¬O¼g¦b³oÃä
Private Sub Workbook_Open()   
If ActiveWorkbook.Password <> "0000" Then
    MsgBox "§ïÔ£±K½X!?"
¤£ª¾¹D¬O¨º¸Ì¦³°ÝÃD
´Nºâ§Ú±K½X¬O0000
¤@¶}±Òworkbook¤]¬O¸õ"§ïÔ£±K½X"
¬O±K½X¨S¼g¤J¶Ü?
¦ý¬O§Ú¥h¿é¤J0000³£¥i¥H¸Ñ°£
ÁÙ¬O»¡¤W­±»yªk¬O¿ùªº?
«D±`·PÁ±z

TOP

¦nªºÁÂÁ±z
­×§ï¦n´N¶Ç¤W¨Ó

TOP

¦^´_ 3# taliban2008
¥i­×§ï¤u§@ªíªº¤º®e¤W¶Ç¨Ó¬Ý¬Ý

TOP

¥»©«³Ì«á¥Ñ taliban2008 ©ó 2011-4-19 17:28 ½s¿è

ª©¥D¤j­ô±z¦n
¤p§Ì¥i§_mailÀÉ®×µ¹±z¬Ý©O
¦]¬°¬O¤½¥qªºªF¦è
¤]¤£¦n¤W¶Ç¨ì½×¾Â
¤£¦n·N«ä¥´ÂZ±z
­Y¤£¤è«K¤]¨SÃö«Yªº
«D±`·PÁ±z

«z¶ã
¤p¾Ç¥Í¤°»òÅv­­³£¨S¦³
£}£}

TOP

¦^´_ 1# taliban2008
§Ú°µªº±K½XÅçÃÒ¤§«e,¦pªG¿é¤J¥¿½Tªº±K½X¦A§ï¨ä¥L±K½X¨Ã¦sÀÉ,¤U¦¸¶}±Ò·|¥X²{±K½X¤£¥¿½Tªº¹ï¸Ü®Ø,¦ý¬O±K½X¤w¸g³QÅܧó¤F

¦A§ï¬°¨ä¥L±K½X  §A¦³¦s¦b­þ¸Ì¶Ü?

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD