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

[µo°Ý] EXCEL VBA ¦p¦ó±N­«½Æªºµ{¦¡¦X¨Ö

¦^´_ 1# ken2192
  1. Option Explicit
  2. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  3.     Dim Rng As Range
  4.     Set Rng = [m9:m50] '**M9,M10,,M49,M50 ¡C ­nÀ³¥Î¦b9-50¦C
  5.     If Not Intersect(Rng, Target) Is Nothing Then
  6.     '**Intersect ¤èªk ¨Ò¯S©w¶Ç¦^ Range ª«¥ó¡A¦¹ª«¥ó¥Nªí¨â­Ó©Î¦h­Ó½d³ò­«Å|ªº¯x§Î½d³ò¡C
  7.     '**expression.Intersect(Arg1, Arg2, ...)
  8.         With Target  '** Target¬O[m9:m50]¤¤ªºÀx¦s®æ
  9.             If IsNumeric(.Cells) And .Cells > .Cells(1, 4) * 0.01 Then .Cells(, 0) = .Cells(, 0) + 1
  10.             '**Cells(1, 4) ---¥HMÄ欰°ò·Ç-> 4=PÄæ,
  11.             '**.Cells(, 0) => .Cells(1, 0) ---¥HMÄ欰°ò·Ç->0=LÄæ,
  12.         End With
  13.     End If
  14. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤ß¤¤±`¦sµ½¸Ñ¡B¥]®e¡B·P«ä¡Bª¾¨¬¡B±¤ºÖ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD