Do loop In between two values until Condition met

1. Do loop In between two values until Condition met

hi,
i want to do loop in between two values until condition met

for example...

first value is Range("B1").value and second value is Range("B2")
B1 = 10
B2 = 20
then in last blank row of range("a4:a100") run this loop from 10 to 20,
Stop looping if last blank row of range("a4:a100").offset(0,15) > 0
``Please Login or Register  to view this content.``
thanks
hope some one will help

2. Re: Do loop In between two values until Condition met

Attaching a sample workbook enables others to work on your problem:

To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

Click on GO ADVANCED and click "manage attachments" to open the upload window.

To add a file to a post

3. Re: Do loop In between two values until Condition met

here is sample workbook
1.JPG

4. Re: Do loop In between two values until Condition met

Still need help understanding what you are looking for.

5. Re: Do loop In between two values until Condition met

How to generate number in between 1-40 in cell b1 using loop

6. Re: Do loop In between two values until Condition met

You have
b1=10
b2=20

Then you say you want to loop 10 to 40

The you say to stop at 13 because C10.offset(,1)>0

-Where does the 40 come from?
-C10.offset(,1) =0 but C7.offset(,1) >0

7. Re: Do loop In between two values until Condition met

I found a code, just need to modify according my need
``Please Login or Register  to view this content.``
Above code is working as I need
Just don't want to generates random numbers
I want to generates sequentially number

For example if b1 =10 and b2 = 15
Then generate number
10
11
12
13
15
16
17
18
19
20
THANKS

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1