basic question about loops

  • Thread starter Thread starter ksnapp
  • Start date Start date
K

ksnapp

i have a project that needs to run a loop within a loop.

I am havin problems with that. Is it possible. Does anybody hav
refrence code if it possible?

thank yo
 
Sub test()
Dim i As Long, j As Long

For i = 1 To 5
For j = 1 To 5
Debug.Print i & " x " & j & " = " & i * j
Next
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top