Could someone help me write a code to find all the common factors of 2 numbers using the for loop where the user enters in two numbers.

This is what I have so far

Dim num As String

if t mod a and h mod a then
a = common factor
h = common factor
For i= 1 to 9
t = num1
h = num2

[Edited by tappling on 10-02-2000 at 08:42 AM]