Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-08-2014, 11:29 PM
gmayor's Avatar
gmayor gmayor is offline automated form filling routine / process Windows 7 64bit automated form filling routine / process 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
automated form filling routine / process Filling in email from form eldublu Outlook 1 03-07-2014 10:55 AM
automated form filling routine / process Word form - created successfully, problem filling out Bibi_D Word 2 07-29-2013 01:53 AM
automated form filling routine / process Text Form Fields - Filling the table cell simville02 Word Tables 1 01-31-2013 11:12 PM
automated form filling routine / process Data got getting returned from Sub Routine Hwyn Excel Programming 5 01-18-2012 08:02 AM
Macro or routine required evanhughes Outlook 0 11-18-2011 02:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft