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

[µo°Ý] ´å¼Ð¶i¤J¬Y­ÓÀx¦s®æ,¦p¦ó¥i¥O¬ÛÃö°Ï°ìÅã¥Ü¦â±m

[µo°Ý] ´å¼Ð¶i¤J¬Y­ÓÀx¦s®æ,¦p¦ó¥i¥O¬ÛÃö°Ï°ìÅã¥Ü¦â±m

¥¼ª¾Excel¥i§_¨Ï¥Î¥H¤U¤èªkÅã¥Ü²Õ¦X¼Æ
¦pªþ¥ó¤¤
H11=SUM(C5+B5)
§Ú¥i§_¥Î´å¼Ð²¾¤JH11Àx¦s®æ«á
C5©MB5³o¨â­ÓÀx¦s®æ·|Åã¥ÜÃC¦â(¦r¦â©ÎªÌ©³¦â)
¤S©ÎªÌ³o¤T­ÓÀx¦s®æ³£Åã¥ÜÃC¦â

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2015-10-31 09:35 ½s¿è

´£¨Ñ¥H¤U¤è®×¡A°Ñ¦Ò¬Ý¬Ý¡]¦¹¤è¦¡¤£¼vÅT´_­ì¥\¯à¡^

´ú¸ÕÀɤU¸ü:
20151031-01(¤½¦¡°Ñ·Ó®æ¶ñ¦â).rar (8.48 KB)

¡Õ¤u§@ªí¨Æ¥ó°Ï¡Ö¡@
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Target
¡@¡@¡@On Error Resume Next
¡@¡@¡@Set xArea = Nothing
¡@¡@¡@If .Count > 1 Then Exit Sub
¡@¡@¡@Application.EnableEvents = False
¡@¡@¡@Set xArea = .DirectPrecedents
¡@¡@¡@If Not xArea Is Nothing Then Set xArea = Union(.Cells, xArea)
End With
Application.EnableEvents = True
[IV1].Calculate
End Sub
¡@
¡@
¡Õ¤@¯ë¼Ò²Õ°Ï¡Ö¡@¡@
Public xArea As Range
¡@
Function XXX(xA As Range) As Long
If Not Intersect(xArea, xA) Is Nothing Then XXX = 1
End Function
¡@
¡@
¡ÕÀx¦s®æ¡D®æ¦¡¤Æ±ø¥ó¡Ö¡@
¢Ð¢´¡G=xxx(B5)¡@³]¶À©³¦â©Î¦Û­q

¤½¦¡®æ¡A¤Î³Q°Ñ·Ó®æ³£­n·Ó¦¹³]©w

TOP

´£¨Ñ¥H¤U¤è®×¡A°Ñ¦Ò¬Ý¬Ý¡]¦¹¤è¦¡¤£¼vÅT´_­ì¥\¯à¡^

¡Õ¤u§@ªí¨Æ¥ó°Ï¡Ö¡@
Private Sub Worksheet_Selectio ...
­ã´£³¡ªL µoªí©ó 2015-10-29 21:20

·PÁ«ü¾É
¥i±¤¦¹¤èªk¦b§Ú¨Ó»¡
¤£À´±o¦p¦ó³]¸m
ÁÂÁ§A

TOP

¦^´_ 3# K_Wing

¤w¸É¤W´ú¸ÕÀÉ, ¸Õ¬Ý¬Ý§a!
_½ÆÂø¤½¦¡´N¤£¤Ó¾A¥Î
_¦]¨Æ¥óIJµoµ{¦¡, ¥i¯à·|¦³¹w´Á¤£¨ìªºª¬ªp

TOP

¦^´_  K_Wing

¤w¸É¤W´ú¸ÕÀÉ, ¸Õ¬Ý¬Ý§a!
_½ÆÂø¤½¦¡´N¤£¤Ó¾A¥Î
_¦]¨Æ¥óIJµoµ{¦¡, ¥i¯à·|¦³¹w´Á¤£¨ìªºª¬ ...
­ã´£³¡ªL µoªí©ó 2015-10-31 09:37


¤½¥qªº¹q¸£¸Ñ¤£¶}rar
Åý§Ú©ñ¤u¦^®a«á¦A¸Õ¸Õ
ÁÂÁÂÀ°¦£

TOP

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

³o­Ó´ú¸ÕÀɫܲ³æ
¦ý¥¼¯àº¡¨¬¤W¥qªº­n¨D
¼È®É¨Ï¥Î¥H¤U¤èªk

TOP

¸Õ¸Õ¬Ý:
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2.     Dim Rng As Range
  3.     Dim col1, row1 As Integer
  4.     col1 = Target.Column
  5.     row1 = Target.Row Mod 5
  6.     Set Rng = Union([H4:K5], [H9:K10], [H14:K15], [H19:K20])   '³]©w Worksheet_SelectionChange IJ°Ê°Ï°ì
  7.     [B4:K20].Interior.ColorIndex = xlNone
  8.     If Not Intersect(Target, Rng) Is Nothing Then
  9.         Target.Interior.ColorIndex = 7
  10.         If row1 = 4 Then
  11.             Select Case col1
  12.                 Case Is = 8:  Target.Offset(1, -6).Resize(1, 2).Interior.ColorIndex = 7
  13.                 Case Is = 9:  Target.Offset(0, -7).Resize(1, 2).Interior.ColorIndex = 7
  14.                 Case Is = 10: Target.Offset(0, -8).Resize(2, 1).Interior.ColorIndex = 7
  15.                 Case Is = 11: Target.Offset(0, -8).Resize(2, 1).Interior.ColorIndex = 7
  16.             End Select
  17.         Else
  18.             Select Case col1
  19.                 Case Is = 8:  Target.Offset(0, -4).Resize(1, 2).Interior.ColorIndex = 7
  20.                 Case Is = 9:  Target.Offset(-1, -5).Resize(1, 2).Interior.ColorIndex = 7
  21.                 Case Is = 10: Target.Offset(-1, -6).Resize(2, 1).Interior.ColorIndex = 7
  22.                 Case Is = 11: Target.Offset(-1, -6).Resize(2, 1).Interior.ColorIndex = 7
  23.             End Select
  24.         End If
  25.     End If
  26. End Sub
½Æ»s¥N½X
¥O¬ÛÃö°Ï°ìÅã¥Ü¦â±m.gif
¥O¬ÛÃö°Ï°ìÅã¥Ü¦â±m.rar (8.93 KB)

TOP

¦^´_ 7# yen956
¬Ý¹Ï¤ù©Ò¥Ü
¥¿¬O§Ú·Q­nªº®ÄªG
¥i±¤¤U¸ü«á¸ÑÀ£«á
ÂI¿ï½d³ò¨S¦³Åã¥Ü¦â±m

§Ú±N°ÝÃD©ñ¨ìExcel£¸¯ë°Ï
­ì¦]¬O§Ú¤£À´±o©ñ¤J¥N½X
¥i§_§iª¾¥N½X¸Ó©ñ¦b¨º¸Ì
¯u©êºp
¤£Â_µ¹§A²K³Â·Ð

TOP

¦^´_ 7# yen956
§Ú©ú¥Õ¬°¦ó§ä¤£¨ì©ñ¥N½Xªº¦a¤è¤F
¦]¬°§Úªº Excelª©¥»¨S¦³¡y¶}µo¤H­û¡z
¬Ý¨Ó¤´¬O¥Î¦^¦Û¤vªº¹Ïªí¦n¤F
ÁÂÁ§Aªº¤@¦AÀ°¦£

TOP

        ÀR«ä¦Û¦b : ¯u¥¿ªº·R¤ß¡A¬O·ÓÅU¦n¦Û¤vªº³oÁû¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD