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

[µo°Ý] ½Æ»s«e¤@­Ó¤ë¤½¦¡¦Ü·í¤ë¨Ã±N«e¤@­Ó¤ë¤½¦¡¶K¤W¬°­È

Sub TEST()
Dim xArea As Range, xRow As Range, M1%, M2%
Set xArea = [C2:L13]
M1 = Month(Date)
For Each xRow In xArea.Rows
¡@¡@M2 = Val(xRow.Cells(1, 0))
¡@¡@If M1 - M2 = 1 Then
¡@¡@¡@¡@If xRow(2).HasFormula Then Exit Sub
¡@¡@¡@¡@If xRow.HasFormula Then
¡@¡@¡@¡@¡@¡@xRow.Copy xRow(2)
¡@¡@¡@¡@Else
¡@¡@¡@¡@¡@¡@MsgBox xRow.Cells(1, 0) & "µL¤½¦¡©Î¤½¦¡¤£»ô¥þ!! ": Exit Sub¡@'¦P¤@¦CÀx¦s®æ³£¦³¤½¦¡¤~·|½Æ»s¡@
¡@¡@¡@¡@End If
¡@¡@End If
¡@¡@If M2 < M1 Then xRow = xRow.Value
Next
End Sub

TOP

        ÀR«ä¦Û¦b : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD