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

¥i§_¥Îµ{¦¡³]©wÀH·N«OÅ@Àx¦s®æ,

¥i§_¥Îµ{¦¡³]©wÀH·N«OÅ@Àx¦s®æ,

«e½ú­Ì, ¦w¦n
½Ð±Ð¤@­Ó°ÝÃD, ¦bexcel¤u§@ªí«OÅ@¤u¯à¤¤, ¥i§_¥Îµ{¦¡³]©wÀH·N«OÅ@Àx¦s®æ,
¤ñ¦p¥Î®a¥Î·Æ¹«ÀH·N¿ï©w¬YÀx¦s®æ, µM«á«ö¤U«ö¯Ã, ¸Ó¿ï©wÀx¦s®æ«K³Q«OÅ@, ­Y¥Î®a·Q¸Ñ°£Àx¦s®æ«OÅ@, ¦P¼Ë«ö¤U¸Ó«ö¶s, Àx¦s®æ«OÅ@«K³Q¸Ñ°£,
¥ý¦æÁÂÁ¦U«e½ú,

¤u§@ªí¨Æ¥ó°Ïµ{¦¡¡G
  1. Dim uChk%

  2. Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
  3. If uChk = 0 Then uChk = 1: Exit Sub
  4. If uChk = 1 Then
  5.    With ActiveSheet
  6.         .Unprotect "1111"
  7.         Selection.Locked = 1 + Selection(1).Locked
  8.         Selection.Borders.Style = 1 + Selection(1).Locked '¦³®Øªºªí¥Ü¥¼Âê©w(´ú¸Õ¥Î.¦¹¦æ¥i§R°£)
  9.         .Protect "1111"
  10.         uChk = 0
  11.         Cancel = True
  12.    End With
  13. End If
  14. End Sub

  15. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  16. uChk = 0
  17. End Sub
½Æ»s¥N½X

¡@
¨Ï¥Î¤èªk¡G
A999.gif

¿ï¨ú¤@­Ó©Î¦h­ÓÀx¦s®æ¡A«ö·Æ¹«¡e¥kÁä¡f¡A¥X²{¥kÁä¿ï³æ«á¡A¦A¹ïµÛ¿ï¨ú®æ«ö¤@¦¸¥kÁä¡A
§Y¥i¦Û°Ê¦b¡eÂê©w¡D¥¼Âê©w¡fÅÜ´«¡G
TEST0830.rar (7.45 KB)
¡@
¡@

TOP

¦^´_ 2# ­ã´£³¡ªL

ÁÂÁ«e½ú¡A·P®¦

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD