sub fillrows for each c in range("a1:a20") if isempty(c) then c=c.offset(-1,0) end if next end sub
Sheet1.Select For Each c In Range("a1:a30") If IsEmpty(c.Value) Then c.Value = c.Offset(-1, 0).Value End If Next
کامنت