Solved

VBA For Statement

Posted on 2007-11-13
2
10,899 Views
Last Modified: 2013-11-28
In the For VBA Statement below, you can count 1 to 10.
For I = 1 To 10
Next I

I wish to count from 10 to 9 using the for statement, is this possible.
0
Comment
Question by:doyle007
2 Comments
 
LVL 14

Accepted Solution

by:
ragoran earned 400 total points
ID: 20277606
You can use the step instruction to specify the increment:

for i = 10 to 1 step -1

next i
0
 

Author Comment

by:doyle007
ID: 20277758
Thanks Ragoran, that worked a treat
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now