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

VBA ¥[Á`¼Æ­È

¦pªG·Q­n¥H"¨ç¼Æ"¤è¦¡¨D:¤ÀÃþ¥[Á`ªº³Ì¤j­È?
simon

TOP

¦^´_ 11# shouyi63
  1. Option Explicit
  2. Sub EX()
  3.     Dim Rng As Range, A As Double
  4.     Set Rng = [A:B]
  5.     A = Application.WorksheetFunction.SumIf(Rng.Columns(1), "bb", Rng.Columns(2))
  6.     MsgBox A
  7.    
  8.     '"bb" ¤£¤À¤j¤p¼g
  9.     'Rng.Columns(1)=[A:A]
  10.     'Rng.Columns(2)=[B:B]
  11. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD