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

¤@­Ó´Á­­Åã¥Ü°ÝÃD

¦^´_  GBKEE
ÁÂÁª©¤j, ³o¬O§Ú©Ò»Ý­n, ¦ý©¿µM¦³­Ó·Qªk, ¯à§_§â¿é¤J¦WºÙ§ï¬°¦~¥÷¥[¤ë¥÷, ¦p±Ò°Ê¥¨¶°, ¦bÅã ...
317 µoªí©ó 2013-9-4 17:48

§Ú²q¼Ó¥D­nªº¥i¯à¬O¥u­n¬O¸Ó¤ë¥÷¶i³fªº³£­n¨q¥X¨Ó,
©Ò¥H§Ú°Ñ¦Ò 3# ±N 5# ­×§ï¤F¤@¤U :
  1. Sub ex()
  2.   ym = InputBox("¿é¤J¤J³f¦~¤ë", , 201308)
  3.   Set Rng = Range("B:B").SpecialCells(xlCellTypeConstants)
  4.   For Each a In Rng
  5.     If IsDate(a) Then
  6.       If Format(Cells(a.Row, "B"), "yyyymm") = ym Then
  7.         stemp = IIf(mystr = "", "", Chr(10))
  8.         If Cells(a.Row, "H") <> "" Then
  9.           R = a.Row
  10.         Else
  11.           R = Cells(a.Row, "H").End(xlUp).Row
  12.           If R = Rng.Cells(1).Row Then R = R + 1
  13.         End If
  14.         mystr = mystr & stemp & "¤J³f¤é´Á : " & Cells(a.Row, "B").Text & "  " & Cells(a.Row, "C") & "  ¨ì´Á¤é : " & Cells(R, "H")
  15.       End If
  16.     End If
  17.   Next
  18.   MsgBox mystr
  19. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¯¸¦b¥b¸ô¡A¤ñ¨«¨ì¥Ø¼Ð§ó¨¯­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD