View Single Post
 
Old 11-08-2014, 11:29 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

It is not clear what you are trying to do, but what you describe is a basic loop process e.g. Run the sub Example to call the other sub three times. If you want more information you will have to supply more detail.

Code:
Sub Example()
    DoSomething 3
End Sub

Sub DoSomething(x As Long)
Dim y As Long
    For y = 1 To x
        'do stuff e.g.
        MsgBox y
    Next y
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote