'목록하단 광고 치환자(withSeok)
728x90

Sub FindDivisors()
    Dim num As Integer
    Dim i As Integer
    Dim row As Integer
    
    num = Range("A1").Value
    row = 1
    
    For i = 1 To num
        If num Mod i = 0 Then
            Cells(row, 3).Value = i
            row = row + 1
        End If
    Next i
End Sub

728x90

+ Recent posts